Bought a Raspberry PI, connected it to your home network, but now you want to access it from outside and you’re not sure what to do? We help! Currently, there are several ways, ranging from a simple redirection of logical ports, installation of services such as TeamViewer, or simply associating the Raspberry PI to the public address of the MEO router.
Today we teach you how you can associate the public address of the MEO router (FiberGateway) to the Raspberry PI in less than 5 seconds.
Before moving on to the configuration itself, just remember the difference between a public IP and a private IP.
Public IP vs Private IP
Basically, machines, when they are connected in a network, have an IP address configured (either IPv4, usually, or IPv6), so that they can be reached by other machines.
Regarding IP addresses, there are public addresses and private addresses. Most IP addresses are public, thus allowing our networks (or at least our router that borders our network and the Internet) are publicly accessible over the Internet, from anywhere.
As for private addresses, these do not allow us to direct access to the Internet, however, this access is possible, but it is necessary to resort to NAT mechanisms (Network Address Translation) that translate our private address into a public address. Find out more here.
Why assign a public IP to a device?
The answer to this question depends on what we want. Basically, when associating the public address of MEO's FiberGateway to a device (eg PC, smartphone, tablet), this device becomes reachable “directly” from anywhere on the Internet. There are many advantages of such a configuration, but we must also bear in mind that from that moment on, the device is exposed beyond our private network. Pay attention to the credentials configured on the mini PC.
How to associate router public address with Raspberry Pi?
To access the FiberGateway administration page, from a PC connected to the MEO network, open a browser and enter the IP address: 192.168.1.254 (by default). To get started, you must know the IP address assigned to the Raspberry PI. To do so, load in LAN.
Then Devices and register the Raspberry PI IP address.
Once you know the IP address of the Raspberry PI, press Safety.
And then click on edit in the Firewall and DMZ section and click on enable DMZ.
Finally, indicate the IP address of the Raspberry PI. And it's done.
How to test?
To test if everything is operational, we can access the website my ip to know the public IP associated with our connection and then test (through a ping or if you have a website on the device you can also test).
And it's done. As you can see, the process is very simple and quick to configure. Don't forget to change the credentials that come by default on the Raspberry PI.