Creating a TCP/IP connection on already-networked computers

Grant Edwards grante at visi.com
Sat Jun 14 22:46:11 CEST 2008


On 2008-06-14, John Salerno <johnjsal at gmailNOSPAM.com> wrote:
> Grant Edwards wrote:
>
>>> Shouldn't it be something different, since the requests are
>>> coming from a different computer than the server computer?
>> 
>> Works fine for me.  When I run the client program on a machine
>> different than the server program, the server program prints
>> out "connected from:" and then the client machine's IP address.
>
> Hmm, so could the reason that the client request is shown to be coming 
> from the same IP address as the server machine be that they are on the 
> same home network?

No, not for the usual value of "on the same home network".
I've no idea how your home network is set up, so that's about
all I can say.

> I guess to truly test my question, I need to have two
> computers that are completely "unrelated" to one another --
> meaning they are in no way connected via any type of network
> prior to running these scripts.

If the two computers are in no way connected via any type of
network, then the two programs won't be able to talk to each
other.

The programs can't create a network, they can only use one that
already exists.

-- 
Grant Edwards                   grante             Yow! I've got an IDEA!!
                                  at               Why don't I STARE at you
                               visi.com            so HARD, you forget your
                                                   SOCIAL SECURITY NUMBER!!



More information about the Python-list mailing list