I'm trying to run the sockets portion of the NetworkDemo that comes with sun's WTK2.1 on a Nokia 6600. In the series 60 emulator from Nokia, everything works perfectly.
I modified the server portion of the application to print the IP addresses of the phone using ServerSocketConnection::getLocalAddress() (and correspondingly for the port; I'm using 5000)
On the phone, things are not so wonderful. The IP address is 127.0.0.1 (localhost) until either some other application accesses the Internet (ie, start Opera) or my application perform an http connection (I added this ability to the Server class). Once something has accessed the Internet, getLocalAddress() actually returns what appears to be a valid IP address.
However, nothing I do seems to be able to reach the phone. I cannot ping the phone, traceroute seems never to end, and telnet <phone's IP> 5000 (which works great when I run in the emulator) times out.
Does anybody know why this might be?