Results 1 to 3 of 3

Thread: Ip adress search

  1. #1
    Join Date
    Dec 2011
    Qt products
    Qt3 Qt4 Qt/Embedded

    Default Ip adress search


    I need to search an Ip address of a devise in order to communicate with later. So I will send a broadcast message through a specific port number and when I receive a response , I will detect the Source address of that response. How could I detect the Ip adress of the sender ( the devise which respond to the broadcast message) ?
    with a winsock library of windows , the function "recvfrom" contains already informations about the sender; but I don't know how it is managed in QT.

    thank you for help

  2. #2
    Join Date
    Sep 2011
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    MacOS X Unix/X11 Windows

    Default Re: Ip adress search

    I guess QUdpSocket is what you're looking for then you can get the sender's ip using readDatagram().

  3. #3
    Join Date
    Dec 2011
    Qt products
    Qt3 Qt4 Qt/Embedded

    Default Re: Ip adress search

    oh thank you; this is what I am looking for

Similar Threads

  1. Add adress bar and buttons to toolbar
    By halvors in forum Qt Tools
    Replies: 1
    Last Post: 27th April 2010, 17:44
  2. Replies: 1
    Last Post: 12th November 2008, 09:15
  3. get an adress from navigator using Qt
    By nina08 in forum Qt Programming
    Replies: 1
    Last Post: 21st May 2008, 16:13
  4. QHttp : Host vs IP adress
    By Nyphel in forum Newbie
    Replies: 5
    Last Post: 15th April 2007, 12:21
  5. Search box?
    By sdfisher in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2007, 19:37


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.