On Fri, 15 Oct 2010 01:30:56 pm Alex Hall wrote:
> Hi all,
> Alright: after a few months letting it rest, I am trying this
> Battleship thing again. I found a p2p library (attached) and have
> tried to implement it (p2p.py). However, I am always getting the same
> error: errno2: no connection could be made because the target machine
> actively refused it.

None of this is a Python problem. You could be using any language.

> I suspect my ip addresses are at fault. I am on a public network here
> at school, and I keep getting 130... addresses. However, my friend
> several cities away cannot use 130, since that is local, right? I am
> not sure where to get my ip; that is, where to get an ip that,
> coupled with the hard-coded port number, will let my computer connect
> to his and vice versa.

http://whatismyipaddress.com/

Also, be prepared to diagnose firewall issues next. If you're trying to 
connect from a computer in one school to a computer in another school, 
both firewalls will almost certainly try to stop you.


-- 
Steven D'Aprano
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to