TCP Server



I’m having some questions regarding the practical implementation of a TCP server.

Since each time a GPRS bearer is started on the modem, the modem IP will be different, how can I know it all the time in the client side?
The first thing is to read the gathered IP of the modem. Is there a funtion in the library to do this?



Ask your provider for a real static IP address for every module with TCP server.



Don’t forget that if you get a public, routable address that you will be hit by all the portscans and other activity that goes with directly connecting a device to the Internet.

My contact at the local ISP has seen more than 20MB/month of portscan data being delivered to mobile devices that have a public, routable IP address.

You will have to seriously think about security of your module and server application.

ciao, Dave