I have an app that does a POST to a servlet and retrieves some data
from it.  This is working fine in my Dev enviornment on my local
machine via: 10.0.2.2

URL servletURL = new URL("http://10.0.2.2:8080/testServlet/test";);
HttpURLConnection servletConnection = (HttpURLConnection)
servletURL.openConnection();

I am now trying to access a servlet on a remote server (which I host)
with:
URL servletURL = new URL("http://<remote ip>/testServlet/test");
HttpURLConnection servletConnection = (HttpURLConnection)
servletURL.openConnection();

However the connection times out and i cannot connect.  I am not
behind a proxy,I have disabled all firewalls and I have the correct
permissions in my manifest file. I also tried putting my app on my G2
too see if it was a problem with the emulator but I got the same
result.  Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to