basic tcp connection to linux server
Posted on newbie forum but really desperate for help here. I have a .net process sending messages to a linux server and was trying to send it to a port but keep getting connection refused error with target server actively refused it message. I checked the linux server and the firewall is disabled; found something online referring to listening on localhost instead of ip but don't see how that is related since I specify the ip when creating the tcp connection. How can I enable this to allow incoming data to a specific port? Do I need to make changes to the iptables file
I checked using the following:
netstat -an | grep 1515 | grep LISTEN
and no response tells me it is not being used right?
I tried to telnet and connection refused. Then used one already open by first getting list
netstat -nlt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:10005 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 :::1514 :::* LISTEN
tcp 0 0 :::9292 :::* LISTEN
tcp 0 0 :::9200 :::* LISTEN
tcp 0 0 :::9201 :::* LISTEN
tcp 0 0 :::9300 :::* LISTEN
tcp 0 0 :::9301 :::* LISTEN
tcp 0 0 :::9302 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
Used 1514 and that was fine. So how do I enable another port to receive connections.
|