![]() 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 should have any other questions, please feel free to submit a ticket to our support team.If you've ever wanted to use your own computer as a server to host your website, then this article is for you. sudo noip2 -S (Capital “S”)Ĭongratulations! You have now installed the DUC on a Raspberry Pi. To confirm that the service is working properly you can run the following command. If you choose 30 the interval will be 30 minutes. The interval is listed in minutes, if you choose 5 the update interval will be 5 minutes. When asked how often you want the update to happen you must choose 5 or more. Now install the program with the following commands: sudo makeĪfter typing “sudo make install” you will be prompted to login with your No-IP account username and password.Īfter logging into the DUC answer the questions to proceed. Next, navigate to the directory you created to locate the downloaded files by entering: cd noip-2.1.9-1 Within the Terminal window type the following commands below. mkdir /home/pi/noipĪfter creating the directory folders for the DUC it is time to download the software. In order to do so, open Terminal and type the following commands below. You will first need to create a directory for the client software to be installed. If you have issues installing the Linux DUC below, installing the newer version v3.x will typically solve these issues and offer more stability. We recommend most users utilize our new Linux DUC available here, which is more modern and stable. Installing the service is simple to do and requires little knowledge of Linux. This guide will help you to install No-IP’s Dynamic Update Client on a Raspberry Pi in just a few minutes using Terminal.
0 Comments
Leave a Reply. |