Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / October 2007

Tip: Looking for answers? Try searching our database.

P2P TCP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Reuben - 09 Oct 2007 10:14 GMT
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.
Thanks.
Mads Bondo Dydensborg - 09 Oct 2007 11:27 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.