all groups > dotnet distributed apps > october 2007 >
You're in the

dotnet distributed apps

group:

P2P TCP


P2P TCP Reuben
10/9/2007 2:14:00 AM
dotnet distributed apps:
Hi,
I was wondering if anyone knew of a way to detect other computers on a
network (running my program) if all connections were made via TCP. All
computers are running WinXP, but I'm limited to .Net 2.0. Any and all ideas
are welcome.
Re: P2P TCP Mads Bondo Dydensborg
10/9/2007 12:27:47 PM
[quoted text, click to view]

Usually one either registers ones programs with a central service, or uses
some kind of discovery algorithm. One very simple discovery algorith is a
broadcast on a known port.

Regards,

Mads

--
Med venlig hilsen/Regards

Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo
Dydensborg
Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44 86 77
Re: P2P TCP Reuben
10/10/2007 3:20:00 AM
[quoted text, click to view]

Thanks for the idea, but I require a little clarification. How do I
broadcast over TCP? The TcpClient class takes an IP address for its
constructor; what should I use for that? Should I use the Socket class
instead?
I can't use a central service, due to the P2P nature of the network.
Re: P2P TCP Mads Bondo Dydensborg
10/10/2007 2:04:44 PM
[quoted text, click to view]

To start with the latter point: many p2p networks do use a central server.
Check e.g. http://en.wikipedia.org/wiki/Peer-to-peer

Of course "pure p2p" does not.

Re: discovery algorithms: Check e.g.
http://en.wikipedia.org/wiki/Service_discovery
as a starting point.

Iff your programs are all running on the same physical network (within a
network segment), you may be able to use a broadcast. This is an UDP
service - sorry, I forgot to distinguesh.

Regards,

Mads

--
Med venlig hilsen/Regards

Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo
Dydensborg
Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44 86 77
AddThis Social Bookmark Button