ServerSocketConnection | Telit Cinterion IoT Developer Community
June 8, 2015 - 11:20am, 3856 views
Dear Gemalto.
I am trying to write a ServerSocketConnection.
I do not have static ip on my SIM/M2M- card.
So in order to work around this problem, I try'ed to etabish an http-connection to my Tomcat server, sending a ping. The response from the ping, gives me the remote ip-addr., that is my tc65 httpconnection. I then tryed to do a ServerSocketConnection where I put in the ip-addr, It does not help. I get a time out. I suspect the ServerSocketConnection is creating its own ip. As You know, the getLocalAddr always come up with a privat ip, in the range of 10.***.***. etc
Is it posibble to ***** the system so it etablish a ip-addr from the above precedure?
I followed this article to set up a server on my BGS5T: http://www.blogelectronica.com/en/webserver-java-tc65-mtx65/
But I had to use SIM card with special settings where BGS5T would be in local network, because otherways my provider would block incoming traffic on HTTP port 80.
Regards
Jure
Hi,
If the simcard you are using is not a public one and uses private ip addresses it is not possible to create a server socket on the terminal and connect to it through the public internet. Altrough there are some options;
1. Use a simcard with an own fixed public IP address.
2. Use a simcard with an own fixed private IP address. Your client ***** also to be in the private network / APN.
3. The terminal connects periodically with your server.
4. You could make some gateway service. Client --> gateway_service <-- terminal. (Terminal is a client connecting to the gateway_service. The client connects also to the gateway service and the gateway_service reroutes the traffic.
Hello,
The module gets the IP address from the provider's network. You get the address from the private pool as standard and you only are able to connect to remote web servers. To have the server on the module you need the public IP address - and this is most probably the extra paid service.
With private IP address you might be able to connect to the server on the module from the client on the same module or some other module in the same sub-network - but this also depends on the provider and will probably be be also blocked.
Regards,
Bartłomiej
I tyed to contact my m2m provider at tdc.dk. But I was rather scolded, than given a solution on what to do and how to do it. I am rather surprised, that while m2m aught to be in the portfolio of every mobile and internet provider, it does not seem so. I also tyed out the m2m.vodafone etc but no luck so far. Honestly, the j2me has been on the market for more than 20 year, but the connecctivity are evidentobvious, still in the "stone age".
Sorry.