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. Network: Connecting Client and Server on different machines
Forum Updated to NodeBB v4.3 + New Features

Network: Connecting Client and Server on different machines

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 3.1k Views 1 Watching
  • 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.
  • V Offline
    V Offline
    Vater Frost
    wrote on last edited by
    #1

    Hi there,

    I'm struggeling since days with a probably very simple problem. However I can't get my head around why the Qt Fortune Server/Client example is not working properly on two machines. If you run them on one machine everything is fine because QNetworkInterface::allAddresses gives the local available IP-addresses for both client and server. They are able to communicate (as far as I understood). But on different machines, even if I use in server->listen a hard-coded ip it is not working. I can ping my machines. Both are available in network. All share the same domain.

    Can someone please point me in the right direction or give me a hint where my basic error is located?

    Qt chat example is also not working.

    Thanks,
    Frost

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      Apparently you have already thought of the different ip addresses. Is somewhere an interference of anti-virus program possible?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Vater Frost
        wrote on last edited by
        #3

        No there is no scanner installed as I run everything on Linux.
        What do you mean with different IP addresses? My understanding was, that I listen on a port of my machine and clients use the IP address of the server with the open port and connect to it.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          That sounds right.
          I certainly had problems with my virus scanner (basically the firewall) blocking a connection. But that was Windows. I had a similar issue when operating Linux on both machines. I suspected also the firewall of Ubuntu playing a role. In order to move forward I reverted one machine and used Windows. Sorry, this won't help you.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • V Offline
            V Offline
            Vater Frost
            wrote on last edited by
            #5

            You mean it could be an issue of the firewall?? Wow, I would have never thought about it. I'll give it a try.

            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