I work through a simple tutorial for C network programming, which can be found here: http://beej.us/guide/bgnet/output/html/multipage/index.html
After reading this, I planned to implement a test client-server program, and then start playing, changing things, adding material, etc. I implemented the program found here (the first client / server set dealing with TCP connections): http://beej.us/guide/bgnet/output/html/multipage/clientserver.html
Basically, the "server" runs on the same machine, and when the client connects, the server simply sends "Hello, world!" This works fine when I run both on the same computer and connect to localhost.
However, I cannot connect between different machines (both on the Debian server and on OpenBSD, without the iptables / pf ruleset). The connection is just time, and I'm not quite sure why. I can ping and ssh in both.
Can anyone, especially someone familiar with this tutorial, point me in the right direction?
Edit: there is no X on the servers, so there are no screenshots, but netstat -tlnp | grep 3490 gives me nothing.
netstat -an shows listening to tcp connection on 3490.
source share