26-03-2003, 02:04 PM
Hi,
I'm running a Java app on a P800 which tries to open a socket connection to a server, the code I'm using is:
Socket testSocket = new Socket(<server ip>, <port number>);
It appears to use the preferred internet connection when this app is run, but I get a NoRouteToHostException every time. However, I can connect to the server using the browser, which uses the same preferred internet connection (indirectly through the preferred WAP account). I have tried setting the proxy server in the internet connection setting to be the same as the Address field in the WAP account setting, but it doesn't work.
Any ideas on how I can solve this?
thanks,
Derek
I'm running a Java app on a P800 which tries to open a socket connection to a server, the code I'm using is:
Socket testSocket = new Socket(<server ip>, <port number>);
It appears to use the preferred internet connection when this app is run, but I get a NoRouteToHostException every time. However, I can connect to the server using the browser, which uses the same preferred internet connection (indirectly through the preferred WAP account). I have tried setting the proxy server in the internet connection setting to be the same as the Address field in the WAP account setting, but it doesn't work.
Any ideas on how I can solve this?
thanks,
Derek