Oh, thats the first time I came across "socket programming"!
Is it like this?
Socket Programming HOWTO
Anyhow, if you are directly connecting between two computers using network cards, you must use a crossover cable. Its a modified cat5e cable allowing for peer-to-peer network connections. Useful stuff for 1 on 1 LAN gaming if you don't want to use wireless
Of course, if you are using a hub, then just ignore whatever I said above
