I use a lot of locally-hosted apps (e.g. Wiki2Touch, PHP chatroom for sharing photos). On my own device, I can use http://localhost, but I have to tell friends my whole IP address. That changes based on the network: 192.168.1.x, 192.168.30.x, etc. Android devices don’t resolve hostnames from the browser address bar. A device knows its own IP address. I propose adding the first 3 parts of the IP address, based on the current device’s own IP. For example, I have a web server running on my device, sharing a chatroom. My device has the IP address 192.168.30.1. My friend’s device has the IP address 192.168.30.4. Right now, I have to tell my friend to type « http://192.168.30.1 » into their browser. My proposal would allow my friend to type « http://lan1 » into their browser.
Powered by WPeMatico