I am running a hello-world http server on an ubuntu EC2 instance, let's say, myurl.com
. I am unable to curl
it from my client:
$ curl myurl.com:4296
curl: (7) Failed to connect to myurl.com port 4296: Connection refused
When I try to reach any other port, my connection is timed out:
$ curl myurl.com:4244
curl: (7) Failed to connect to myurl.com port 4244: Operation timed out
I have the following inbound rule on AWS:
I am able to curl it on the server:
$ curl localhost:4296
Hello World
My netstat:
$ netstat -a | grep 4296
tcp 0 0 localhost:4296 0.0.0.0:* LISTEN
What am I doing wrong?