Creating a TCP/IP connection on already-networked computers

John Salerno johnjsal at gmailNOSPAM.com
Sat Jun 14 14:54:02 EDT 2008


John Salerno wrote:

> -----
> #!/usr/bin/env python
> 
> from socket import *
> from time import ctime
> 
> HOST = '192.168.1.100'


> -----
> #!/usr/bin/env python
> 
> from socket import *
> 
> HOST = '192.168.1.100'

A question about this. Is the "HOST" referring to the IP address of the 
server computer in both of these cases? Because when I ran the program 
and got to the part where it says "connected from:" on the server side, 
it shows this same IP address. Shouldn't it be something different, 
since the requests are coming from a different computer than the server 
computer?



More information about the Python-list mailing list