ModernHttpClient - does it work on LAN?

I am have a terrible time trying to get modernHttp to work. Does it work on a LAN or only WAN?
I am using this sample program:

IF I change the WisdonURL variable to "" (which works in all other clients, browsers I have to hand) an unhandledexception is thrown without any attempt at all made to connect to my local server.

Is there something fundamental I am missing?


  • adamkempadamkemp USInsider, Developer Group Leader mod

    Are you running a server on your Android device? is the local host, which means the machine you're running on. Android tablets won't typically be running a web server so you should expect that URL to fail.

    Networking is networking. There is no difference between WAN and LAN except in the routing and firewall behavior. If you are trying to run a local server (which seems kind of strange, but whatever) and this isn't working then I suspect that Android is doing something to block you. Maybe it's a firewall thing or maybe it's an app permissions thing. There are specific manifest entries for networking. See here and here.

  • PaulReadPaulRead GBMember ✭✭

    Ha! Cheers, feel a bit dumb now. Cos I am using Xamarin Android Player - it feels like I am on my PC so the server on PC 'should' be available which it obviously is not! Many thanks for quick reply!

  • adamkempadamkemp USInsider, Developer Group Leader mod

    If it makes you feel any better I bet it would have worked in the iOS simulator. The Android emulator is an actual VM, though.

Sign In or Register to comment.