Friday, May 10, 2019

4.1 jelly bean - How use call a local server by name rather than IP?


I've started MAMP on my computer and I'd like to make a GET call from Android app. I'd like to access the computer by it's name(e.g. computer.local:8888) rather than the computer's ip.


On the computer if I open Chrome and type computer.local:8888 it works as expected. On the phone this fails, but typing it's local ip (192.168.1.141) works.


So, is it possible to access a local http server by a name rather than ip ? If so, how ?




No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...