Results 1 to 2 of 2

Thread: Broadcast and Find Server!

  1. #1
    Join Date
    Mar 2008
    Posts
    68
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Broadcast and Find Server!

    Hello There,

    I have a client server application to develop.The Communication will use TCP.

    In this :

    The Client will know only the port to connect for a TCP connection.
    It will not know the address of the server. in that case how will i find the address of the server.

    I tried broadcasting a message and getting the peer address from the client side,
    but its not working.

    the server cannot broadcast.

    so can anyone please suggest a solution!

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Broadcast and Find Server!

    So "peer" or "server" and "client"?

    In general you'll need some service discovery protocol. Peers have to register themselves against some known source or you have to use one of available protocols like zeroconf or UDDI. Google for those terms to learn more details.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.