How Can I Check if My Home IP Address is Routable?

0
0
Asked By DynamicDude42 On

I'm dealing with a dynamic IP address at home that changes often, but my ISP has assured me that it should always be routable. However, there are times when they mess up and assign me a non-routable IP. I'm looking for a way to detect this through a shell script. I currently have a Raspberry Pi with a reverse SSH tunnel to my iMac at home, and if that connection fails, it might mean I have a non-routable IP, but I'm not entirely sure. Is there a better method to confirm if my home IP address is routable?

1 Answer

Answered By TechieTommy On

You might want to focus on testing the reachability directly rather than just checking if the address is routable. A good idea could be to try establishing an inbound connection from your Raspberry Pi to your home network. For example, you can run a command like `nc -zvw5 your-home-ddns-name 22` from the Pi to see if it can connect to your iMac. This way, you're confirming accessibility, which is what matters most.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.