AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
No ip duc open port4/16/2023 ![]() ![]() If your router allows it (which it normally does), allocate a fixed internal IP or MAC address to the RPi. On some routers, you might do that by setting up a new application/game. Different routers have different ways of doing this. located on the home network at 192.168.0.100 ). the HTTP port 80) to the same port on the RPi (e.g. You will need to obtain access to the configuration settings in your router for that - and forward a port (e.g. However, you will need to tell your Home/Work router where the RPi is located on your Home/Work network, if you want to access the RPi and OctoPi from the outside. You can skip this step for now, as we want to use the RPi to do that job for us. To do that, you need to tell the number of you home/work IP address (e.g. ) you can use it to access your home or work network. Once you've registered your Dynamic DNS name (e.g. Alternatively, you can get a paid Dynamic DNS with - which they will try to sell you. They will send you an email, just follow the instructions (it only takes a minute or two). NOTE: You can get a free Dynamic DNS name, but you will need to refresh the DNS name at once a month. Then you will need to create a free Dynamic DNS name, at e.g. with Prusaprint/OctoPi).įirst register with (e.g. This Dynamic Updater Client (DUC) service will update the IP address stored at NoIP and the instructions below will get it to run automatically on the RPi (e.g. Here are instructions to set up a Dynamic DNS updating service on the RPi, for use with Octoprint/PrusaPrint/Octopi.ĭynamic DNS allows access to your local network, by allocating a name to your network instead of an IP address (numbers). if you need any guidance about that, you can send me an email on and I will write a tutorial about Dynamic DNS - installing the Dynamic Updater Client (DUC) on a RPi 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
Read More
Leave a Reply. |