Can't Access a remote server from emulator.

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Can't Access a remote server from emulator.

Postby dsukhram » Wed Oct 28, 2009 9:30 pm

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?
dsukhram
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Oct 06, 2009 10:49 pm

Top

Resolved

Postby dsukhram » Fri Oct 30, 2009 11:44 pm

It turned out to be a networking configuration error.
dsukhram
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Oct 06, 2009 10:49 pm

Re: Resolved

Postby elmuSSo » Sun Dec 20, 2009 2:28 pm

dsukhram wrote:It turned out to be a networking configuration error.


Can You give me more details? How did You repair this problem?
elmuSSo
elmuSSo
Freshman
Freshman
 
Posts: 4
Joined: Tue Sep 15, 2009 3:18 am
Location: Poland

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 2 guests