All routers have a different WebUI, so it would be impossible to cover them all. This guide explains in a few steps how to do it generally. Just to have some pictures at least – we will use our own router to give you a hint.
What port should I use?
Port 80 (http://example.com) is the most common port for regular websites, and allows traffic to your server without SSL.
Port 443 (https://example.com) is used for servers that use SSL. This is the safest option and is used i.e. to access cloud servers such as ownCloud.
LOG IN TO YOUR ROUTER
Type 192.168.X.X (X = 1 or 2) in the browsers address field. Some routers have a sticker on the back with the routers address, also known as “gateway”.
CHECK YOUR CLIENTS-LIST AND CHECK FOR THE VM’S MAC-ADRESS
Your MAC-address could look like this: 00:08:C7:1B:8C:02
GO TO YOUR LAN SETTINGS
LOOK FOR A MENU WHERE IT SAYS “DHCP”
LOCK THE VM´S MAC-ADRESS TO THE INTERNAL IP THAT YOU WILL USE
The MAC-address is that specific LAN-card’s address. You have to lock it to the IP that we will forward port 80 or 443 to.
GO TO YOUR WAN SETTINGS
LOOK FOR A MENU WHERE IT SAYS “PORT FORWARDING”
LOCK PORT 80 AND/or 443 TO THE IP YOU JUST SET AS STATIC
Note to those who downloaded the WordPress VM
The Virtual Host for the WordPress VM is preset to 80. If you want to use SSL, just activate the SSL Virtual Host instead. You activate it by typing this in terminal:
:~$ sudo a2ensite wordpress_port_443.conf
:~$ sudo a2dissite wordpress_port_80.conf
:~$ sudo service apache2 reload