I have a gsm modem with the following ip address: 10.122.91.216.
I use readDatagram of QUdpSocket because it’s a udp socket:
qint64 QUdpSocket::readDatagram ( char * data, qint64 maxSize, QHostAddress * address = 0, quint16 * port = 0 )
The problem is it told me the ip address was 74.205.127.225 even though that is wrong. The actual ip address is 10.122.91.216. Any idea why it gives me the wrong ip address?
↧