I've been working with socket programming lately; and I'm currently making a server that listens on a port for incoming connections, then once it gets one, reads in a string and places it in a file.
It all works fine when I'm telneting to the server from the server, but when I try and access it from anywhere else its as if it doesn't exist. Nmap doesn't show an open port -- from either the localhost or the remote host. It only works through telnet on the server its running from.
The function's code is here. (pastebin)
I know it's a mess, I'm still pretty unfamiliar with network programming. There really aren't any good in-depth tutorials that show you everything you need to know. I guess I'll have to buy a book...