Accessing Your localhost from your mobile device

You have your localhost set up, and you are working on your responsive website, after trying many of the simulators. You still want to test on actual devices how the sites are going to look like.

Here’s a very simple way of testing your sites and viewing them on your mobile devices.

  1. Have both your localhost computer and your mobile device connected to the same wifi.
  2. Get the IP address of your localhost
  3. Get the port number for your localhost
  4. Write in the following address in your mobile browser: http://ipaddress:portnumber/webdirectory

Now you got it.