Configuring my laptop to serve a website through openssh

Solution 1:

I am not sure why the SSH answer but I think this can be done in a much more simple way:

In you router find the NAT settings (not NAS!), sometimes also called port forwarding. Set it up as following:

IP of your desktop (destination) with port 80

Source port 80

enter image description here

Next find the public IP of your router by going to www.whatismyip.com and give it to your friend.

You can test that it all works by first entering IP of your desktop to your own browser - you should get the website, next enter the IP of your router found in the previous step, you should again get the website.

Complete guide for your specific router is here