Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I signed up with http://www.no-ip.com/index.php, which provides dynamic DNS services. I have openssh installed and running. On my windows box, I could use putty and ssh in with the 192.168 address. But when I tried it with the hostname, it doesn't work. I have forwarded the port on my router to the ubuntu box and I checked it with http://www.canyouseeme.org/ to see if it's really opened. When I tried to use the hostname instead of ip address, putty would return saying connection timed out. Any idea?
when I tried it with the hostname, it doesn't work
from your internal network? And the hostname that you used is the publicly accessible hostname ie. the one with no-ip?
That won't work unless you are on the internet hitting your port forwarded router. Put a different host name using the internal ip into a hosts file on your machine and it will work.
from your internal network? And the hostname that you used is the publicly accessible hostname ie. the one with no-ip?
That won't work unless you are on the internet hitting your port forwarded router. Put a different host name using the internal ip into a hosts file on your machine and it will work.
I see, so if I was to try on the outside, i.e. not in the internal network, then it would work?
I see, so if I was to try on the outside, i.e. not in the internal network, then it would work?
That would be correct. Reason being is when you use the public hostname you leave the internal network via the public ip, go to the internet to resolve and then try and re-enter you internal network via your public ip. Your router\firewall or whatever you have setup won't allow this as it would be seen as spoofing.
That would be correct. Reason being is when you use the public hostname you leave the internal network via the public ip, go to the internet to resolve and then try and re-enter you internal network via your public ip. Your router\firewall or whatever you have setup won't allow this as it would be seen as spoofing.
I think this behavior can be router specific. I've got two routers on my network, a Motorolla (for VOIP) and a Linksys (for my general network). If I have my Motorolla router as the WAN facing router (i.e. Internet ->Modem->Motorolla->Linksys->LAN), then I see the same problem as P31. However, if I put my Linksys in Front (Internet->Modem->Linksys->LAN(and Motorolla) then using my no-ip domain from the LAN side works fine.
Hangdog42 I don't doubt that one bit there are so many routers and configs out there. I went the direction I did because the problem that the OP describes is the one for which I gave that explanation.
Hangdog42 I don't doubt that one bit there are so many routers and configs out there. I went the direction I did because the problem that the OP describes is the one for which I gave that explanation.
Please don't take my post as criticism of your answer. I was just expanding on your explanation a bit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.