BGS5 as a server | Thales IoT Developer Community
December 3, 2014 - 11:23am, 2857 views
I'm trying to listen to incomming TCP connections on BGS5 module using ServerSocketConnection class, and following connection string:
connection_string = "socket://:1111;bearer_type=gprs;access_point=someapn;timeout=null;username=un;password=pwd"
and then openning connection with
connection seems to be established as expected, but when I get local IP (conneciton.getLocalAddress()) it returns me some 10.122. .. kind of address, some random/internal IP which is invalid. The connection to the net using the same sim with regular mobile phone results in completelly different scope of address (which can be validated using f.e. https://ipinfo.io/)
Any ideas what's wrong here?