Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. TCP Connection Problem
Qt 6.11 is out! See what's new in the release blog

TCP Connection Problem

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 490 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • KuvarsK Offline
    KuvarsK Offline
    Kuvars
    wrote on last edited by Kuvars
    #1

    Hello all, I hope you're doing well !

    I have written a program in QT providing TCP Server-Client connection. From the server, I am starting to listen a port. From client, I am entering the IP address and the port to connect to the server.

    It works flawlessly when I try to connect to a computer by typing its IP address. However, although I have build the exact project into another pc, I cannot connect to its IP address from any other computer. Even if I disconnect from the wi-fi and connect to my phone's hotspot to change its IP address, I still cannot connect to it from any other PC. Looks like the problem is about this computer. In brief, I can use it to connect to other computers, but it cannot be a server to welcome the other TCP clients.

    What might be the problem, and any ideas to fix it?

    Thank you in advance!

    Christian EhrlicherC 1 Reply Last reply
    0
    • KuvarsK Kuvars

      Hello all, I hope you're doing well !

      I have written a program in QT providing TCP Server-Client connection. From the server, I am starting to listen a port. From client, I am entering the IP address and the port to connect to the server.

      It works flawlessly when I try to connect to a computer by typing its IP address. However, although I have build the exact project into another pc, I cannot connect to its IP address from any other computer. Even if I disconnect from the wi-fi and connect to my phone's hotspot to change its IP address, I still cannot connect to it from any other PC. Looks like the problem is about this computer. In brief, I can use it to connect to other computers, but it cannot be a server to welcome the other TCP clients.

      What might be the problem, and any ideas to fix it?

      Thank you in advance!

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Kuvars said in TCP Connection Problem:

      What might be the problem, and any ideas to fi

      If you can ping the other computer then it's maybe the firewall.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      KuvarsK 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        @Kuvars said in TCP Connection Problem:

        What might be the problem, and any ideas to fi

        If you can ping the other computer then it's maybe the firewall.

        KuvarsK Offline
        KuvarsK Offline
        Kuvars
        wrote on last edited by
        #3

        @Christian-Ehrlicher Once again you are right sir, I have disabled the firewall, and now it allows connections from other devices.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved