Running an Android application that use a client keystore against a self-signed certificate, the application runs properly on the emulator (eclipse) but trying to run it on an actual Android device, with 3g connection, fails:
06-16 16:15:28.638: W/System.err(2335): java.io.IOException: Hostname '111.11.11.11' was not verified
06-16 16:15:28.648: W/System.err(2335): at libcore.net.http.HttpConnection.verifySecureSocketHostname(HttpConnection.java:223)
06-16 16:15:28.648: W/System.err(2335): at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:446)
06-16 16:15:28.658: W/System.err(2335): at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:289)
06-16 16:15:28.658: W/System.err(2335): at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:239)
06-16 16:15:28.658: W/System.err(2335): at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)
06-16 16:15:28.658: W/System.err(2335): at libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:188)
06-16 16:15:28.658: W/System.err(2335): at libcore.net.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:281)
06-16 16:15:28.658: W/System.err(2335): at org.ksoap2.transport.HttpsServiceConnectionSE.openOutputStream(HttpsServiceConnectionSE.java:124)
06-16 16:15:28.668: W/System.err(2335): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:176)
06-16 16:15:28.668: W/System.err(2335): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:114)
06-16 16:15:28.668: W/System.err(2335): at
...
Besides the Internet connection, what other thing should I check to find why it's failing?
Did not find answers on:
Android : java.io.IOException: Hostname was not verified
Android SSL HostName Was Not Verified
java.io.IOException: Hostname was not verified
Hostname was not verified ANDROID