Results 1 to 2 of 2

Thread: I get DIFFERENT IP addresses by QAbstractSocket::peerAddress ()

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default I get DIFFERENT IP addresses by QAbstractSocket::peerAddress ()

    Hi! I am using function
    QHostAddress QAbstractSocket:: peerAddress () const
    to get connected host address. After this, i get ip address as QString with
    peerAddress().toString() .
    By connecting server with 3G wirelless mobile internet (T-Mobile SK, Huawei modem, data 10GB ) i get my ip address from one server 195.91.55.216 and from another server i get 195.91.56.216 (within one internet connection session - no disconnections during connecting both servers, servers not connecting in one time but one after one). Both servers are running on windows server 2008 R2 datacenter and server application is using QT 4.6 (using class QSslSocket).

    Can you tell me somebody what is wrong? Thanx...
    Vladimir from Slovakia

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I get DIFFERENT IP addresses by QAbstractSocket::peerAddress ()

    Over 3G, the IP address is not guaranteed to remain stable during sessions. With some carriers you can request this, but it usually costs lots of cash.

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

    Vdo (11th October 2010)

Similar Threads

  1. Problem with QAbstractSocket and states.
    By nomadscarecrow in forum Qt Programming
    Replies: 0
    Last Post: 17th March 2010, 15:55
  2. Replies: 0
    Last Post: 10th February 2010, 07:07
  3. Replies: 4
    Last Post: 25th January 2009, 05:40
  4. Replies: 1
    Last Post: 25th February 2008, 10:36
  5. QAbstractSocket::abort() with SIGSEGV
    By mtrpoland in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2008, 17:05

Tags for this Thread

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.