Servin' it up

Posted by Theodore Chiu on November 28, 2017 · 2 mins read

Servers!

As you may have noticed there is now an FTP tab! While this is mostly for my use since its password protected, it’s still something new on the site. I’ve always wanted to run a server, and since my network is a mess of cascading and parallel routers, the port forwarding and ip addresses were always difficult to manage. But, I finally sat down, diagrammed all the static ip’s and with some port forwarding figured out how to serve to the world wide web!

Dynamic vs Static ip addresses

The one caviat is that since I don’t own a domain name or a static ip, the server has to run a dynamic update client. For the people that don’t know how the internet works, each website is assigned an ip address, although you might not know it. For example no one looks up 31.13.69.228, but that ip address belongs to facebook. In the same way people don’t go on typing strings of 4 numbers into their address bar when they want to go to a website, instead they type a domain name. Theoretically, typing the 4 strings of digits works for websites that own ip addresses. 31.13.69.228 belongs to facebook, since they bought it long ago. But for people like me who lack the funds to pay for a static ip address, but have internet, our internet service provider routinely changes my ip address.

The workaround

The solution is a dyanamic update client. The DUC routinely goes on the internet and checks its own ip address before uploading the information onto another server where I have registered for a subdomain (for free). This way whenver the ip address for my network changes, the server will discover the change and change the slave ip on the dynamic ip server, this in turn changes the subdomain to refer to that ip address instead of the expired one.

The magic

Now, not only can I access my files via sftp on my server from any computer with an internet connection, but I can also log in and manage the server via a command line interface.

The future

The future might hold VPN’s and even serve Apache… who knows?