Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.






(C++) WtUbuntu Global Wt deployment on a home server with the Ubuntu Server operating system


Global Wt deployment on a home server with the Ubuntu Server operating system is a type of global Wt deployment on a home server where the server has the Ubuntu Server operating system.


The deployment consists of the following steps:






Installing Ubuntu Server edition


Install Ubuntu Server edition on the server-to-be.


I did so by burning a CD from the ISO image that can be downloaded from the Ubuntu Server edition homepage. During installation I kept all options at their default.






Finding out your IP address


On the server-to-be, find out its IP address. To do, there are multiple options:


Write down this IP address, you will need it to access your Wt application.






(when behind a router) port forwarding


When behind a router, ports 80 an 8080 need to be forwarded to the server. How to do this depends on your router. Below I show how to do it using a router called the 'KPN Experia box'


To set up the port forwarding with the KPN Experia box, I used the web browser Google Chrome to access this router. According to the Experia box's manual, I would need to surft to After doing so, the Experia login screen was shown. After submitting the correct pasword, the Experia status screen was shown. On this screen, I can see the local (useful for computers connected to the router only) IP address and the global IP address (the IP address any Internet users can access. In this example, my server is called 'bbserver' and has a local IP address of, where the global IP address is


In the Experia port mapping menu, ports 80 and 8080 are routed to the local IP address of the server, in this case






Starting the Wt application


If you haven't installed the Wt library, do so:

sudo apt-get install witty


Start the Wt application (in this case 'CppHelloWorldQtCreatorUbuntu'):


sudo ./CppHelloWtQtCreatorUbuntu --docroot . --http-address --http-port 8080


After submitting your password, the server is running. From another computer it can be accessed from its global IP address with ':8080' appended. In this example, surfing to would show up the application.






(Optional) Register a name for your IP-address


An IP address is not an easy-to-remember thing. When visiting a free dynamic DNS service, for example the changeip.net page, after a free registration, a human-readable name can be coupled to the IP address. In this example, I coupled the name 'richelbilderbeek.changeip.net' to the IP address From then on, surfing to richelbilderbeek.changeip.net:8080 will show up the application.






External links









  1. ...






Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.


Valid XHTML 1.0 Strict