When setting up a VPN on my office LAN, I first need to setup a way to access my local network over the internet.
There are 2 ways to do this
- Buy static IP address (Paid)
- Configure Dynamic DNS (Almost free)
But, in order for the option 2 to work, the office router should have a direct public IP address.In another words, the ISP (Internet Service Provider) should not put the router inside a NAT. Which basically means that if the router is behind another network device, it will not have a direct public IP address.
In US for example, 98% home users will have public IP assigned to the router.However, in India, most probably, the ISP will but the router behind a NAT.
Hence, the question: How do I find out if my ISP has put me behind a NAT. Will Dynamic DNS work with my ISP?
asked Mar 2, 2021 at 0:16
AdarshAdarsh
17911 gold badge22 silver badges1010 bronze badges
1
-
1
Note that NAT does not necessarilly mean this won't work. the question is whether the NAT method in use has one public IP per internal customer, and whether they give you control of the NAT at your router (which is common with north American ISPs). Some kinds of NAT like Carrier-Grade NAT will make this almost impossible, but other types will allow you to do what you need to. Also note that DynDNS does two things for you, it lets your router update your public IP as it changes, and gives you a domain name to run your services on. your router does need to support DDNS updates though.
Mar 2, 2021 at 0:23
Add a comment |
In order to find out if you router is behind a NAT, you need to trace how you are connected to internet.
Follow these steps
- Go to checkip.dyndns.org You will get your public IP address.
- Open CMD and type tracert {public IP}, for example:
tracert 144.54.89.140
- If there is more than 1 hop, you are behind a NAT.
More Details / Explanation
The below image shows an example of tracert. In this example, I am tracing the route from my PC to Cloudflare server on 1.1.1.1
. It took 6 hops to reach the 1.1.1.1
server.
When you run tracert {your public ip}
, and you see an output with just 1 hop, then it means your router is directly connected to the internet, without any NAT of your ISP.
However if you see more hops, then your ISP has implemented NAT (could be NAT 2 or NAT 3). In which case Dynamic DNS will not work for you.
2
Add a comment |
Not the answer you're looking for? Browse other questions tagged
Not the answer you're looking for? Browse other questions tagged