how to view a locally hosted web server from other devices code example

Example: how to connect localhost with phone

//Start the local host server
//Open your terminal and type:
ipconfig

//you will find something like this:

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . : *the wifi you are connected to*
   Link-local IPv6 Address . . . . . : fe90::b671:1sde:8a7f:697c%60
   IPv4 Address. . . . . . . . . . . : 178.0.9.580
   Subnet Mask . . . . . . . . . . . : 265.235.250.0
   Default Gateway . . . . . . . . . : 172.0.2.254
   
  //Type the default gateway numbers on your phone's browser then semicolons
  //follwed by port number. e.g 172.0.2.254:300

Tags:

Misc Example