Hi there
I'm trying to run a server on my midlet which waits for a connection. The serving midlet will post an ip up onto the web and another midlet reads that ip, and connects to it.
The code used to start the server is this.
scn = (ServerSocketConnection) Connector.open("socket://:" + C.PORT);
sc = (SocketConnection) scn.acceptAndOpen();
I'm currently using port #5000.
It works fine on my emulator, but the IP which is being used is "192.168.0.2", which is my local IP on the desktop machine.
When i actually try to get the ip via scn.getLocalAddress(), the IP i get is 10.x.x.x, which i beleive is not a valid ip to use over the internet.
Is there a way to retrieve the IP so that other devices can find my midlet (either via WAP or GPRS)?
And do i need to contact Vodafone so they unblock any custom ports i use?
