Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 2660  / 2 Years ago, mon, july 18, 2022, 7:16:28

OK!!! I've successfully connected from an external network on both ssh and http. I changed a BUNCH of settings though before I got it to work, so I'm going to slowly change some of them back to see where the problem(s) really was(were).



Thanks for all the suggestions!!!



This ought to be a pretty simple answer, but I can't find it anywhere, and it's really confusing me. I am new to Ubuntu, and am trying to configure a web server. I have gone through tons of tutorials, and run into "host" or "localhost" very often. For example, to execute ssh user@localhost, I would replace user with my username, and localhost with my internal IP address (connecting from the same local network). That much, I can do.



I just want to make sure that all I have to do is replace host with my external (ISP provided) IP address to ssh from an outside network??? The thing is that I have done that, and it hasn't worked, so I want to make sure that my syntax isn't the problem. Thanks so much for your patience and support.






Ok. Everyone's saying I need to forward ports. I did forward ports 80 and 22 through my router to my server, but it's not working. I also contacted my ISP, and they said that they didn't know of any ISP restrictions on ports. So, yes. I think I set it up, but it's still not working. Also, I completely bypassed my router, and connected my server directly to the modem, which does NOT have an internal router, and the problem was still there. Since somebody upvoted this question, I can now post my pic :)enter image description here


More From » ssh

 Answers
3

From other answers and comments, I think your ip forward problem looks solved so coming back to the original question about host and localhost: yes, in this case, host is your external IP. Usually, host means any host (ip or hostname or url), internal or external depending on the situation and localhost is not any internal IP but the IP of the machine you are working on (lo interface - IP 127.0.0.1) and provided you have something like 127.0.0.1 localhost.localdomain localhost (or only localhost as is the default) in /etc/hosts you can let it as localhost without substitution.



For example you can:



ping localhost and 127.0.0.1 (your machine loopback interface - lo) should answer.


[#35982] Wednesday, July 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ellter

Total Points: 311
Total Questions: 111
Total Answers: 117

Location: Lithuania
Member since Thu, Jul 14, 2022
2 Years ago
;