> 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.
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

Signature
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
34
Reuben - 10 Oct 2007 11:20 GMT
> 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.
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.
Mads Bondo Dydensborg - 10 Oct 2007 13:04 GMT
>> Usually one either registers ones programs with a central service, or
>> uses some kind of discovery algorithm. One very simple discovery algorith
[quoted text clipped - 5 lines]
> instead?
> I can't use a central service, due to the P2P nature of the network.
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

Signature
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
34