I am trying to build a LAN using my phone. Have connected the phone via USB to the pc and switched on WiFi hotspot (so i can connect laptop, printer etc to the Internet). But i cant get them together, as i know my public IP provided by IPS, i cant get the local IP for my PC, and other gadgets as well. And my phone is not connected to any WiFi hotspots, as i use it as a hotspot itself.

  • What do you mean by "get them together"? What's the LAN configuration you're trying to achieve, and what do you need the public IP for?
    – Dan Hulme
    Sep 12, 2017 at 16:35

1 Answer 1


If you have more information, I can help you. The APP ES file explorer provides a LAN function. If you want to route over the PC to a router or something do this.

1.)First, you need to enable routing.(Windows)

2.)You need an app that provides you with a terminal (terminal emulator etc.)

ifconfig usb0
route add default gw

Set your DNS server :

echo "nameserver" >> /etc/resolv.conf

or with BusyBox:

nano /etc/resolv.conf

3.)Under Windows you need to configure the path to your router.

route ADD MASK

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .