Re: Creating a TCP/IP connection on already-networked computers

2008-06-15 Thread John Salerno
Dennis Lee Bieber wrote: The network protocols form a layered stack. The bottom of the stack is the physical connection: coax (now rare), twisted-pair (cat-5/cat-6 cable with rectangular plugs on the end), fiber optic... etc. At some level above that is the part that translates data pack

Re: Creating a TCP/IP connection on already-networked computers

2008-06-15 Thread Grant Edwards
On 2008-06-15, John Salerno <[EMAIL PROTECTED]> wrote: > So in the case of me trying this with a friend who lives far > away, how would these two scripts work if we wouldn't be on > the same connection? It depends on the way the two networks are set up. Here's a fairly typical setup: Mac

Re: Creating a TCP/IP connection on already-networked computers

2008-06-15 Thread Lie
On Jun 14, 11:31 pm, John Salerno <[EMAIL PROTECTED]> wrote: > Let me see if this question even makes sense...I'm reading Core Python > Programming and I jumped ahead to the more specific topics like network > programming. I plan to follow along with the example in that chapter and > create a socke

Re: Creating a TCP/IP connection on already-networked computers

2008-06-15 Thread Lie
On Jun 14, 11:31 pm, John Salerno <[EMAIL PROTECTED]> wrote: > Let me see if this question even makes sense...I'm reading Core Python > Programming and I jumped ahead to the more specific topics like network > programming. I plan to follow along with the example in that chapter and > create a socke

Re: Creating a TCP/IP connection on already-networked computers

2008-06-15 Thread Lie
On Jun 15, 8:40 am, John Salerno <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: > > 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 > > a

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread John Salerno
Grant Edwards wrote: "home network" is pretty much a meaningless term, so you can use it however you want. My guess is that all the "wizard" did was set up file and print sharing between two computers that were already on the same network and could already talk to each other. Yes, you're ri

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread Grant Edwards
On 2008-06-15, John Salerno <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: > >> 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

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread Grant Edwards
On 2008-06-15, John Salerno <[EMAIL PROTECTED]> wrote: >> Is there any possibility you are confusing a Windows Workgroup >> or Domain in this... (Assuming anyone still runs such) Or >> other Windows convenience features to automatically detect >> computers in a local area network and display them

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread John Salerno
Grant Edwards wrote: 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. But isn't that the point of the program, to create a network be

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread John Salerno
Dennis Lee Bieber wrote: Is there any possibility you are confusing a Windows Workgroup or Domain in this... (Assuming anyone still runs such) Or other Windows convenience features to automatically detect computers in a local area network and display them in "network neighborhood". Wha

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread Grant Edwards
On 2008-06-14, John Salerno <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: > >> That depends on your definition of "unrelated." > > Heh heh, you mean that wasn't specific enough!? :) > > I just mean completely unconnected in any possible way, network or > otherwise. If they're completely uncon

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread Grant Edwards
On 2008-06-14, John Salerno <[EMAIL PROTECTED]> 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

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread John Salerno
Grant Edwards wrote: That depends on your definition of "unrelated." Heh heh, you mean that wasn't specific enough!? :) I just mean completely unconnected in any possible way, network or otherwise. My two are on a home network, but if I were to run the server program and have a friend of

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread John Salerno
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

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread Grant Edwards
On 2008-06-14, John Salerno <[EMAIL PROTECTED]> wrote: > 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

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread Grant Edwards
On 2008-06-14, John Salerno <[EMAIL PROTECTED]> wrote: > John Salerno wrote: >> if the program I write actually works and allows the two >> computers to speak to each other, will that be a result purely of the >> program, or will it have anything to do with the fact that they are >> already on a

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread Timothy Grant
On Sat, Jun 14, 2008 at 11:54 AM, John Salerno <[EMAIL PROTECTED]> wrote: > 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 = '19

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread John Salerno
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

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread John Salerno
John Salerno wrote: if the program I write actually works and allows the two computers to speak to each other, will that be a result purely of the program, or will it have anything to do with the fact that they are already on a home network together? Here are the two programs. Server first, t

Re: Creating a TCP/IP connection on already-networked computers

2008-06-14 Thread Grant Edwards
On 2008-06-14, John Salerno <[EMAIL PROTECTED]> wrote: > Let me see if this question even makes sense...I'm reading > Core Python Programming and I jumped ahead to the more > specific topics like network programming. I plan to follow > along with the example in that chapter and create a socket > c