Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 5803  / 3 Years ago, fri, october 22, 2021, 5:36:42

I have recently installed few packages for telnet, mysql and postgreSQL. I can access all these service locally on the ubuntu server but somehow I am not able to access these services from other machines.
Below are the active internet connections using:



sudo netstat -tulpn 

tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 18776/inetd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 19451/mysqld
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 8453/postgres


I am not able to figure out what I am missing. I am almost sure that I have configured these packages correctly to allow outside world connections.



When I am trying telnet from windows, I got "Could not open connection to the host, on port 23: Connect failed"



I doubt, my router might have blocked these connections but I don't know how to troubleshoot or unblock these connections. Please suggest, Many thanks!


More From » networking

 Answers
3

Your machine has a local IP address, if you want to access it from the internet you have to do a Static Port Mapping or Static Nating.



the best way to do that is from your router if it support static/custom port mapping by do the following



forward 192.168.0.33 port 23 to 23



and then you can access your server from your public IP address.



these are sample images for the router configurations.



enter image description here
enter image description here



also you can know your public IP from google https://www.google.com.eg/search?q=my+ip or from your router.


[#26692] Saturday, October 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oneeme

Total Points: 340
Total Questions: 110
Total Answers: 133

Location: Ghana
Member since Fri, Oct 21, 2022
2 Years ago
oneeme questions
Wed, Jul 6, 22, 17:32, 2 Years ago
Tue, Mar 15, 22, 05:29, 2 Years ago
Tue, May 10, 22, 17:15, 2 Years ago
Mon, Sep 27, 21, 15:42, 3 Years ago
;