![]() ![]() This router, like many others, prevents users on the Internet from accessing PCs connected to your local network. If you have a different router, this article is still a good read. This article describes how to use No-IP in a NAT environment using the LinkSys Cable/DSL Router. There are numerous vendors that make a similar product. A popular one is the LinkSys BEFSR41 4-port Cable/DSL Router. This type of router allows you to use multiple computers sharing one Internet connection and IP address through Network Address Translation (NAT). ![]() Many people have opted to use a Cable/DSL router to get around this issue. if you need any guidance about that, you can send me an email on and I will write a tutorial about that.So your Internet service provider sticks you with a dynamic IP address. You can also use the same previous steps to ssh to your home laptop, you just need to setup openssh server on the laptop and configure it to be more secure by preventing any access using passwords and use ssh keys instead. you can use your mobile data network and navigate from any browser on your phone to your hostname and port number like this ":5000". Hooray, we reached our final step and we are ready to access the application from another network. so visit the port checker website, and write your hostname in the IP address field and for the port number write the opened port number.Īccess your application from another network If you want to see the current configuration, use this commandįor now, you need to check that your hostname and the port is working correctly. Now you are able to run the script that updates your hostname, this script needs to be started every time you restart this machine $ ip route show | grep "default via" | awk ' /usr/local/etc/nf If you don't know the address of the router's configuration page, run this command in the terminal to see it. You need to login as an admin to the router configuration page. in order to check if it is working correctly, navigate to "localhost:5000" in your browser, you should see the text message provided in the previous command. This docker container will bind port 5000 from your host machine to port 5678 inside the container. $ sudo docker run -p 5000:5678 hashicorp/http-echo -text="Hello world from my home laptop." Once docker is available, we are going to launch the web server using this command If docker is not installed on your machine, you can use the script provided in this gist to install docker. This web server will be deployed using docker. I will deploy a simple web server on my local machine that just replies with a simple string for every request. So to solve the previous challenges, we are going to use the port forwarding feature in the router configuration to forward all the traffic that is coming from the outside on a specific port to my computer as you can see in the below picture.Īnd to solve the next challenge, we can use a dynamic DNS service like noip, so we will be able to reserve a domain name like "" for example to point to the router's public IP address. ![]() The second challenge is that most of us are having a dynamic public IP and the static one is expensive, so we need to use a domain name instead of using IP address to access the application and this domain name needs to be updated periodically. The first is to be able to forward the traffic to our laptop which is lying behind a router while we are having several devices connected to this router and are sharing the same public IP address as shown in the below picture. When we think about that there would be 2 main challenges that may oppose us and here we are going to solve them. Many developers want to do this in order to showcase a demo for a website or to express an idea without paying too much for the cloud providers. If you've ever wanted to use your own computer as a server to host your website, then this article is for you. ![]()
0 Comments
Leave a Reply. |