I've created an application which connects to the "apache tomcat server" through wireless lan. i connect to an IP address
URL url= new URL("http://192.168.10.143:8080/MyServer/"+"ServletName/");
urlConn=(HttpURLConnection)url.openConnection();
The application works fine on Android emulator but not on actual device.
The same application which i've developed under J2me is on same principle on java/symbian phone then the phone asks for connection to be established with the wireless router or GPRS connection.
But on android device there is no response from the device for connecting to the server. What might be the problem???
I've also put this in AndroidManifest
<uses-permission android:name="android.permission.INTERNET" />
What else should i do ???
You should use your public IP address, and portforward port: "8080". For more information on how to do that, check out: http://www.portforward.com. There you can find almost any router and how to open a specific port.
Hope that Helps, Wesley.