Get rid of annoying port numbers at home November 18, 2005Posted by Carthik in ubuntu.
If you, like me, run a server for your own purposes at home, and your ISP like mine blocks port 80, so you cannot access your server webpages using http://example.com, but instead need to use http://example.com:8080 or some other default port, and it is driving you nuts ’cause you have to explain to all you friends that the “:8080” is required, well, the solution is rinetd.
$sudo apt-get install rinetd
then, in /etc/rinetd.conf
add lines like:
# bindadress bindport connectaddress connectport
0.0.0.0 80 192.168.0.201 8080
This will forward all requests to port 80, which is the default port that http:// requests are sent to when made to a domain name, or IP address, to port 8080 on the machine with IP 192.168.0.201
It works for me, and I am a novice, so if there is something wrong in what I wrote above, please correct me. Earlier I had set up apache to serve pages on port 8080 since my ISP seemingly blocks port 80. the 192.168.0.201 part is the locally assigned IP address of the server-computer.
Any questions about running a server from home that I could address? There are a whole bunch of guides out there so I don’t want to write a new one without good reason 🙂