HttpClient client = new DefaultHttpClient();
HttpPost httpPost = new HttpPost("http://simonexxx.no-ip.info/ilMercatinoDelxxx/ModificaArticolo?id=" + id);
//HttpPost httpPost = new HttpPost("http://151.xx.xx.247:8080/ilMercatinoDelxxx/ModificaArticolo?id=" + id);
Is there any possible reason why the HttpPost works perfectly with the IP (commented line) but not writing the relative url?
I can acces the resource with the browser in both ways.
Obviously the xxx are just for privacy.
I get:
Sending signal. PID: 15236 SIG: 3
threadid=3: reacting to signal
3
Wrote stack trace to ‘/data/anr/traces.txt’
This log should simply say I’m accessing internet from the UI activity, that should not be done, ok. But writing the IP it works fine.
I think the problem is with port. Usually DNS names translate to IP addresses and keeping the default port (80), unless you have defined to forward your request to a specific port in DNS records. Now in case of no-ip, it seems like you are using a free account and there is no such feature (in free accounts) to define port together with IP address to offer DNS name.
So in your case, you need to append port number together with your address, as mentioned by @Martin Maurer