Quantcast
Channel: How can I access my localhost from my Android device? - Stack Overflow
Viewing all articles
Browse latest Browse all 49

Answer by Andy for How can I access my localhost from my Android device?

$
0
0

Building on Ilya Saunkin's answer, here's a command that should output your IP address formatted as a hyperlink - just substitute 3000 for whatever your port number is:

ifconfig | grep "inet " | grep -v 127.0.0.1 | sed 's/netmask.*//g' | sed 's/inet//g' | awk '{print "http://"$1":3000/"}'

Depending on where you're running the command, you should be able to (on a Mac) hold the command key and click/double-click to open the links.


Viewing all articles
Browse latest Browse all 49

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>