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. Qt 5.4 QTcpServer listening on IPv6 only
QtWS25 Last Chance

Qt 5.4 QTcpServer listening on IPv6 only

Scheduled Pinned Locked Moved General and Desktop
network socket
2 Posts 2 Posters 1.5k 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.
  • X Offline
    X Offline
    xxxx
    wrote on 5 Jun 2015, 22:40 last edited by
    #1

    Hello,

    We have a network server based on Qt 5.4 QTcpServer and listen via:

    ipcServer.listen(QHostAddress::Any, 33000);

    When I build and execute this application on a linux platform, "netstat -ln --tcp" shows:

    tcp6 0 0 :::33000 :::* LISTEN

    There is no listening IPv4 socket, and connection with an IPv4 restricted client fails. Loosening the restrictions on the client to allow an IPv6 connection allows successful connection with the server.

    I'm starting investigations on a win7 platform now, and will post an update when data is available.

    Can anyone explain why this listen doesn't open a listening port on both IPv6 and IPv4?

    Thank You...

    johnea

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on 6 Jun 2015, 06:47 last edited by
      #2

      Hi and welcome to devnet

      Sounds really strange and doesn ot make sense.
      Do you have a special linux build?
      And from where did you Qt install?

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

      1 Reply Last reply
      0

      1/2

      5 Jun 2015, 22:40

      • Login

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