Found the solution. It was the proxy. The link below shows how to do this, but as a reference I'm also including the code I used from that link.
http://www.mail-archive.com/[email protected]/msg65644.html public void onCreate(Bundle savedInstanceState) { try { super.onCreate(savedInstanceState); // Set Proxy final String proxyHost = android.net.Proxy.getDefaultHost(); final int proxyPort = android.net.Proxy.getDefaultPort(); ProxySelector.setDefault(new ProxySelector() { @Override public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { } @Override public List<Proxy> select(URI uri) { ArrayList<Proxy> l = new ArrayList<Proxy>(); SocketAddress sa = new InetSocketAddress(proxyHost, proxyPort); l.add(new Proxy(Proxy.Type.HTTP, sa)); return l; } }); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } On Nov 14, 8:07 am, Luis-Jaime <[email protected]> wrote: > I also have the same issue described by Mark. I can call mywebserviceusing > KSOAP2 when using my WiFi network, but when I try to use > it through my phone's internet plan, it times out. I've been trying to > find a solution for days. I've tried simple HttpGet and still get > timeouts... I'm suspecting it could beproxyor APN, but I still have > no luck.. BTW, I can reach the WS ftest page and use it from the > browser with no problem.... I'd appreciate anyone's help on this > > On Nov 7, 8:10 am, rubeN_vl <[email protected]> wrote: > > > > > I'm aware of that > > > On 7 nov, 15:07, Mark Murphy <[email protected]> wrote: > > > > rubeN_vl wrote: > > > > i want to run awebserviceon aAndroidphone. > > > > Why? It's not going to be reachable, except on a local WiFi network, and > > > even then only if somebody knows the IP address of the phone. > > > > -- > > > Mark Murphy (a Commons > > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > > _Android Programming Tutorials_ Version 1.0 In Print!- Hide quoted text - > > - Show quoted text - -- 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

