Wifi – How to host an ssh server

port-forwardingwifi

I have a broadband internet connection. I have an wireless modem (Airtel India). I don't have a static ip address. I want to host a ssh/web/ftp server to be visible to the outside world just for testing and learning purpose so I can ask my friend to connect to my current ip address and test. My modem has an admin interface which allows to port forward and open ports. modem Configuration

I set up ssh server as shown and checked if port 22 is open using this website ,
Port Scan

And port 22 is open. I have an openssh server running and it works if i do,
ssh balki@192.168.1.5 which is my local ip address but doesn't work if i do ssh balki@122.xx.xx.xx where 122.xx.xx.xx is my external ip address of my modem which i checked from whatismyipaddress.com.
Since it looks like the port is open, I wonder if there is some setting I need to change in my server config to expose my server. How should I go about solving this?

Best Answer

It can be that your router does not support you connecting from your internal network to your external IP address, unfortunately some routers cannot route that.

You can try visiting this website: http://portscan.me it will perform a portscan on the IP address you're coming from, so given that you come from the same IP address as your server, then you should be able to see whether or not port 22 is open to the world.

The scan might take a few mins to complete.

Related Topic