0
I am trying to login to my friends PC. We both are using ubuntu 14.04 LTS. I told her to install telnet by typing the following commands:
sudo apt-get install telnetd
sudo /etc/init.d/openbsd-inetd restart
Now I told her to tell me her IP address.
The IP when the ifconfig
command is run from terminal is like 172.21.*.*
. But when she googles, her IP is seen as 59.152.*.*
.
When I try to telnet the IP 172.21.*.*
, it hangs. and when I try the public IP 59.152.*.*
it says, connection closed by foreign host. Is there any way to connect so that I can login to her computer?
Your friend does not have normal IP addresses for her devices. She probably only has one IP for her modem/router-combi-thinges and has a private RFC1918 network behind it. The get around that either use public IP addresses (IPv4 or IPv6) or some ugly hack called NAT. The latter is whaty @barlop is using in this answer. – Hennes – 2014-09-13T10:04:38.513
what is the router/modem brand here? Is this her ISP's modem brand? How do I know that? – Tamim Addari – 2014-09-14T15:55:42.837
Here I see I need to use port forwarding for SSH !! – Tamim Addari – 2014-09-14T17:43:15.787