# How to Access Local Sever on Other Devices



In this article, I am going to show you how you can access your local/localhost server on any other device (Android or iOS). 

To access your local server, you only one thing **IP Address** of the device where the server is running. Now there could be two scenarios where you are using Windows or Mac. You just need to get the IP Address. Let me show you how:

Open windows terminal and type `ipconfig` in the command line and you will get the following output:

![](https://i.imgur.com/VSkhF2w.png)	
You only need an IPv4 address and as you get it not type this in your mobile browser followed by `PORT`. For instance-  

```bash
# IPv4:PORT 
192.168.64.201:3000
```
And if you are running any web app on `localhost:3000` then you will be able to see that on your mobile devices also.

For **Mac users** you have to do the same-
- Get the IPv4 (use `ifconfig` command)
- Put that on your mobile device followed by `PORT`

And hurray!!!

If you are unable to fine the mac IP address then you can take a look the following article: 

[How to Find Your IP Address on a Mac](https://www.wikihow.com/Find-Your-IP-Address-on-a-Mac)

Following is the Video demo of how it works:
![Demo](https://imgur.com/QEAyiwr.gif)

### Wrapping up

That's all you need to run you localhost server on other devices.  If you enjoyed this article, then don't forget to give ❤️  and if you have any questions or feedback then don't hesitate to drop them in the comments below. I'll see in the next one.


**🌐 Connect with me:**

[Twitter](https://twitter.com/j471n_)  
[Github](https://github.com/j471n)  
[Instagram](https://www.instagram.com/j471n_/)  
[Newsletter](https://www.getrevue.co/profile/j471n)  
[LinkedIn](https://www.linkedin.com/in/j471n/)  
[Website](https://j471n.in/)  
[Buy me a Coffee](https://buymeacoffee.com/j471n)
