2 Answers
- Newest
- Most votes
- Most comments
1
Connection refused implies server is rejecting the connection. Can you paste the output of the below command? Since you've already checked SG and NACL, check if IPtables is being used perhaps?
netstat -an | grep 2525
0
In netstat output,it shows that it can listen only locally, change the config so that it can listen from either network ip or from 0.0.0.0
answered 2 years ago
Relevant content
- asked 5 years ago
- asked 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
$ ps -ef | grep 2525
ubuntu 1749 1738 0 17:58 pts/1 00:00:00 ./smtp2http -name=lookout -listen=localhost:2525 ubuntu 1759 1637 0 17:58 pts/0 00:00:00 grep --color=auto 2525
$ netstat -an | grep 2525 tcp 0 0 127.0.0.1:2525 0.0.0.0:* LISTEN
The smtp server I'm running shows on 2525.
This is the problem, in netstat you should see the listener on * or 0.0.0.0 ( * : 2525 Or 0.0.0.0:2525). In your case it is only listening on localhost (127.0.0.1:2525) which is why locally the connection works but not for the remote host. You can compare the same output but for SSH/TCP-22 (netstat -an | grep 22) and you will notice the difference.