If I try your code on my machine (replacing 'foo' with 'localhost') it runs fine. Maybe you should try IP-addresses instead of hostnames. If you use a hostname, a machine will always try to resolve this to an IP-adress before it uses it (using DNS or another resolving mechanism), it's just one more step that can go wrong.
Hope this helpsIn reply to Re: Trouble with sockets
by eXile
in thread Trouble with sockets
by sweetblood
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |