On Sat, Jun 14, 2008 at 11:54 AM, John Salerno <<a href="mailto:johnjsal@gmailnospam.com">johnjsal@gmailnospam.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">John Salerno wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----<br>
#!/usr/bin/env python<br>
<br>
from socket import *<br>
from time import ctime<br>
<br>
HOST = '<a href="http://192.168.1.100" target="_blank">192.168.1.100</a>'<br>
</blockquote>
<br>
<br>
</div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----<br>
#!/usr/bin/env python<br>
<br>
from socket import *<br>
<br>
HOST = '<a href="http://192.168.1.100" target="_blank">192.168.1.100</a>'<br>
</blockquote>
<br></div>
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?<div>
<div></div><div class="Wj3C7c"><br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>John,<br><br>It looks to me as if you're running both client and server on the same box, and in effect conecting to yourself.<br><br>You asked in an earlier message if a friend on a different network could connect to you using your client programme and that depends on a LOT of things. Your friend certainly wouldn't be able to using the 192.168.x.x address as that is an unroutable address. But you would likely have a bit of work to do to get it to work through you and your friend's firewalls (that is likely a conversation for a later time though.<br>
<br clear="all"><br>-- <br>Stand Fast,<br> tjg.