Make it available from the Internet: Port Forwarding - OpenWrt

Port forwarding can be used to publish computers in your own network on the Internet and thus make them accessible from the Internet. Anyone who uses a WLAN router for their home network to connect to the Internet has most likely set up a NAT (Network Address Translation) on it, either consciously or unconsciously. This means that the internal devices use private IP addresses and connect to the Internet via a common public IP address. To enable a connection from the Internet to a specific computer in the private LAN, a so-called port forwarding can be set up. But first, let's take a brief look at how a connection to the Internet is actually established via a router:

Connection to the Internet via a router

Private IP addresses are e.g. 192.168.x.x or 172.16.x.x or 10.x.x.x. In this example we use - 254 as private network.

The computers connect to the Internet via the router (default gateway) and share a public IP address (Public IP)

address of the own network can be found out in Windows via the command prompt.

To do this, enter the command ipconfig:

The IPv4 address in the output is the address of the computer, the default gateway is the address of the router, see also Network Commands.

Port forwarding: connection from the Internet to a computer in the internal network

a corresponding web service must be active on the computer to be accessed, this can be tested with localhost, see calling localhost.

Set port forwarding

Exemplary also for other routers, a port forwarding can be set in the free router firmware openWRT as follows: So in the browser to the IP address of the router (gateway, in the example
Firewall, Port Forwards, Add:

As in the schematic example: port 80 from the external interface should connect to the internal IP address port 80.

OpenWRT is a router firmware for various routers, see: Alternative Router Firmware: OpenWrt and no longer DD-WRT

What is the public IP of the Internet access?

The call from the Internet is made via the public IP address of the Internet connection.

After the public IP address of your internet access is used to call this page, we can show it here:
The current IP address of your Internet access is:

(see above pictures: "Public IP Internet access" )

positive Bewertung({{pro_count}})
Rate Post:
{{percentage}} % positive
negative Bewertung({{con_count}})

THANK YOU for your review!

Updated: 2022-08-07 von Bernhard | Übersetzung Deutsch |🔔 | Comments:0

Free DynDNS service - access with changing public IP. | Home Server | Nextcloud Server Docker | Setup + https: Let's Encrypt [ssl]

Top articles in this section

[DIY] Build your own low power NAS: cheap and energy-efficient

If you are looking for a NAS (Network Attached Storage) for home use, you cannot avoid the manufacturers Synology and QNAP. Both manufacturers deliver small NAS complete solutions with the option to synchronize data locally or via the Internet, and both do not exactly charge little money for the hardware used.

Nextcloud Server Docker | Setup + https: Let's Encrypt [ssl]

To synchronize contacts, appointments, and photos of my NAS, I tested Nextcloud and thus turned my back on other cloud providers for my private data. Thanks to Docker, the installation is easier and more flexible than ever, allowing Nextcloud to run on almost any hardware.

Cheap and economical Docker Mini Server for home use

If you want to run a small server at home, you need hardware with low power consumption and still enough performance. Currently, I use a self-built NAS for the operation of my Docker containers. The hardware serves as network storage and at the same time as a platform for running my Docker containers. To optimize the setup, it would be better to separate the two tasks and run the server services on their own hardware. Since the data on a single device it not secure anyway, a NAS could additional...

Questions / Comments

By continuing to browse the site, you agree to our use of cookies. More Details