Closed ibrahimAJ closed 8 years ago
What URL are you passing it?
www.tranzportal.ie it is ping in commandprompt but in app its not reaching
Specifically the documentation reads:
///
/// Tests if a remote host name is reachable (no http:// or www.) ///
/// Host name can be a remote IP or URL of website
/// Port to attempt to check is reachable.
/// Timeout in milliseconds.
///
Note: Tests if a remote host name is reachable (no http:// or www.)
I assume you are using this method? You need to be more specific about what exactly you are doing.
i tried using http:// or www but when i use this way it is throwing unresolve host but when we pass only ip address as url that is not reaching but in commanprompt it is pingable.what may be reason behind that?
When you go to that URL it is a 500 error so I assume it can't reach it as it is returning an error. On Feb 10, 2016 10:43 PM, "ibrahimAJ" notifications@github.com wrote:
i tried using http:// or www but when i use this way it is throwing unresolve host but when we pass only ip address as url that is not reaching but in commanprompt it is pingable.what may be reason behind that?
— Reply to this email directly or view it on GitHub https://github.com/jamesmontemagno/Xamarin.Plugins/issues/214#issuecomment-182738416 .
yes i am getting that 500 error in broswer when i test with that url
but how it is ping in commandprompt
Most likely different protocol that it is trying. Try google.com or any other website that is running I am sure it will work just fine. On Feb 10, 2016 11:12 PM, "ibrahimAJ" notifications@github.com wrote:
but how it is ping in commandprompt
— Reply to this email directly or view it on GitHub https://github.com/jamesmontemagno/Xamarin.Plugins/issues/214#issuecomment-182742212 .
using www.google.com as hostname to check whether the server is reachable or not is showing server not reachable only.but whatever the url i said www.tranzportal.ie is not working but working for both ios and windows.
What device and what OS are you using?
On Thu, Feb 11, 2016 at 1:48 AM, ibrahimAJ notifications@github.com wrote:
using www.google.com as hostname to check whether the server is reachable or not is showing server not reachable only.
— Reply to this email directly or view it on GitHub https://github.com/jamesmontemagno/Xamarin.Plugins/issues/214#issuecomment-182785446 .
James Montemagno http://www.montemagno.com @jamesmontemagno http://www.twitter.com/jamesmontemagno
Nexus One(3.7",480x800;hdpi),android 5.0.1-API Level21
Do you see anything in the log cat or can you try to run the actual code and see what the exception is. Running fine for me on my device (6P) and also emulators:
I assume you have the internet permission checked in release mode
connectivity plugin is throwing error like Unable to resolve host.no address is associated with host.internet,network state,wifi state permissions also given in androidmanifest.xml,but that dns in the hostname is not accepting.why.what is the reason behind that