Results 1 to 3 of 3

Thread: Get IP from client

  1. #1
    Join Date
    Jun 2010
    Posts
    100
    Thanks
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Get IP from client

    Hi!

    I would like to know if it is possible to get the ip from the client that is connected to the server.

    I though that was the property Qtcpsocket->IPv4Protocol but it didn't work for me.

    Thank you

  2. #2
    Join Date
    May 2009
    Location
    Gorontalo
    Posts
    200
    Thanks
    20
    Thanked 5 Times in 5 Posts
    Qt products
    Platforms
    Unix/X11 Windows

    Default Re: Get IP from client

    peerAddress().toString()

  3. The following user says thank you to wirasto for this useful post:

    ruben.rodrigues (28th June 2010)

  4. #3
    Join Date
    Jun 2010
    Posts
    100
    Thanks
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Get IP from client

    Quote Originally Posted by wirasto View Post
    peerAddress().toString()
    If my english didn't suck I would get that right. Thank you!

Similar Threads

  1. DBus Client
    By junix in forum Qt Programming
    Replies: 1
    Last Post: 6th February 2010, 13:53
  2. WebIssues Client 0.9.5
    By mimec in forum Qt-based Software
    Replies: 0
    Last Post: 17th August 2009, 12:01
  3. WSDL client using Qt
    By abeinoe in forum Qt Programming
    Replies: 1
    Last Post: 2nd July 2009, 14:57
  4. QTM - Blogging client for Qt 4
    By Matt Smith in forum Qt-based Software
    Replies: 4
    Last Post: 20th March 2007, 20:16
  5. OPC client with Qt
    By hafwil in forum Qt Programming
    Replies: 0
    Last Post: 18th May 2006, 18:28

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.