First of all we need to find out that why would someone need to access his router from anywhere outside? well, the are reasons behind it. If you are out of town and your router has a USB support, then you can access that USB device from anywhere outside and fetch data over it whenever you need (mostly all mid-range and high end routers have USB support), look for the USB port behind it. Secondly, you can use this feature to monitor and control your router from anywhere outside to check if someone is stealing your WiFi by going into WiFi settings or if my room mates are at home (if their smartphones are connected to the router) or for any other reason, whenever needed.
If you want to access you router from inside the network, then you need to access local IP address of you router, e.g. 192.168.x.x from your browser. However, if you have a static public IP address e.g. 172.16.22.36, then you can access your router remotely by simply navigating to you public IP address 172.16.22.36:8080, unless your remote access turned on, which is turned off by default. But in most cases, we have a dynamic IP address that is subjected to change every time we turn off the router. Fortunately, there is an easy way to bypass this dynamic IP address. However, we can also make use of software like Team Viewer, etc., in which you need a computer to stay ON all the time and a software too, but in this way, which I am going to explain, there is no need of any computer or any software. For that a service called dynamic DNS is used. Just follow these steps to get the job done:
Part-1: Enabling Remote Access:
If you know how to access your router locally, then you may skip Step-1 and jump directly to Step-2.
Simply open your command prompt (for windows) or terminal (for MAC) and type the following command to find your default gateway:
For Windows users, type: “IPCONFIG /ALL” (without quotes)
For MAC users, type: “ROUTE -N GET DEFAULT” (without quotes) and hit enter, and look for the Default Gateway IP address, as shown.
Now, open your browser and type your Default Gateway IP address and hit enter, and this will open up your router’s login page.
Now, login to your router by typing in user name and password (if you don’t know the same, you may contact the person who installed router at your place), and find an option called Remote Management or Remote Access (If you are unable to find this option, refer to the device manual or contact the manufacturer), enable it, and click on Save. (Note: By default, the port number will be 8080, but to ensure security, you may change it to something else, and also keep the password for the router complex for better security.)
Now, you are ready to access you router remotely. This can be accomplished by simply typing your public IP address, followed by port number from any device. (To know your router’s Public IP address, simply visit https://whatismyipaddress.com/ from any device that is connected to your router.)
Now, there is a problem that how can you know your router’s Public IP address when you are not at home, when it keeps on changing routinely? well, that will be resolved in Part-2.
Part-2: Fixing dynamic public IP address:
Now, there are various companies that provide dynamic DNS service, and every router has a tie-up with some. So the best way to check out, which service to choose, simply visit the router page.
Once you log in to your router, look for an option called Dynamic DNS. (Note: If your router doesn’t support Dynamic DNS service, which is very unlikely, you can still get the job done, by simply downloading a software called IP updater and put it over the computer which is ON most of the time.) Most routers support www.dnydns.org or www.no-ip.com, in which the first one is paid service, so you may choose the second one viz. www.no-ip.com which is almost free service.
Go to www.no-ip.com and create a free account then add a new host name of your choice and also enter your public IP address. (Note: Here also you can also download IP updater software and put it over a frequently used computer.
Now, copy your domain name and paste it into your router settings, and also key in the user name and password which you used while registering for www.no-ip.com and then save the changes.
Now, if you have to access your router from any where, just browse through the host name which you have created in www.no-ip.com followed by the port number, which is usually 8080. For example, if your host name is www.siliconroot.ddns.net and port number is 8080, then you should visit: www.siliconroot.ddns.net:8080.
Now, you are done with making your router securely accessible from anywhere over the internet.