[Tutor] trying it again: p2p for game

Alex Hall mehgcap at gmail.com
Fri Oct 15 05:55:27 CEST 2010

On 10/14/10, Steven D'Aprano <steve at pearwood.info> wrote:
> 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/
This, too, reports a 130... address and places me in the central hub
for all state university traffic, not my own city. I am not surprised
by this inaccuracy.
> 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.
Hmmm... I hate firewalls. :) Still, it failed on my friend's network
when he (said he had) disabled all firewalls and other potential
problem programs for the network...
> --
> Steven D'Aprano
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor

Have a great day,
Alex (msg sent from GMail website)
mehgcap at gmail.com; http://www.facebook.com/mehgcap

More information about the Tutor mailing list