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. QTcpServer::listen() network time out
Forum Updated to NodeBB v4.3 + New Features

QTcpServer::listen() network time out

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 980 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.
  • G Offline
    G Offline
    gmm398
    wrote on last edited by
    #1

    I have the simplest of servers (just for test), but on one Windows 7 machine this fails

    server->listen( QHostAddress::All,5000);

    with an error of "Network Operation Timed Out". Using Qt 5.8 with MSVC2015 and the machine is dual-NIC. It is also running McAfee Host Intrusion Prevention if that is relevant, and the settings are beyond my control. The program works fine on another Windows 7 computer (a laptop). Also it works fine with ::LocalHost, but then I have no access from other computers.

    Has anyone experienced this before... any ideas?
    Thanks

    K 1 Reply Last reply
    0
    • G gmm398

      I have the simplest of servers (just for test), but on one Windows 7 machine this fails

      server->listen( QHostAddress::All,5000);

      with an error of "Network Operation Timed Out". Using Qt 5.8 with MSVC2015 and the machine is dual-NIC. It is also running McAfee Host Intrusion Prevention if that is relevant, and the settings are beyond my control. The program works fine on another Windows 7 computer (a laptop). Also it works fine with ::LocalHost, but then I have no access from other computers.

      Has anyone experienced this before... any ideas?
      Thanks

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @gmm398

      Hi and welcome to devnet

      Does the error message come immediately?

      Probably it is a firewall issue as you already suspect. You would need to with the AV if there is a setting respectively a notice. Check if you allow listening to the port.

      When the error message pops up immediately, you could disable the AV's firewall for a while and check if it the error pops up after enabling the firewall.

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

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gmm398
        wrote on last edited by
        #3

        It takes around 5 seconds (as opposed to a second or less when it works with LocalHost).

        I tried a pure winsock program (straight C++) and that works fine "0.0.0.0" and "::" , so it does not appear to be a firewall problem. The laptop that the Qt sample worked on has the same firewall.

        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