Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8373933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:48:20+00:00 2026-06-09T14:48:20+00:00

I’d like to know how to implement a discovery function in a LAN P2P

  • 0

I’d like to know how to implement a discovery function in a LAN P2P Network.
I don’t want to use the .NET 3.5 P2P library,i want to design it myself.For the moment when a user presses Connect button, he sends a broadcast message in the lan, informing the other peers that he is available.The other peers on the receiving Thread identify that message and by their will can establish a connection.
For example:
Machine 1 with IP 192.168.0.101 presses connect and sends a message “Command.Connect” at “255.255.255.255” for broadcast
Machine 2 with IP 192.168.0.102 waits on a Thread for Udp messages and identifies that peer with IP 192.168.0.102
When a user presses Disconnect another command “Command.Disconnect” is sent in the same manner.
Can you tell me please if it is a good idea for discovering peers in a LAN?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:48:22+00:00Added an answer on June 9, 2026 at 2:48 pm

    If you are designing it for simple LAN only then you can also consider using IP-Multicast instead of UDP broadcast. Using IP-Multicast you new peer will only send message to interested peers only but in case of broadcast your message will be sent to all computers even if they are not running your chat program. However there are pros and cons for both options and depends upon your requirement and future plans for your application.

    Secondly if it is possible for you to have a server in the system then it can be more fine-tuned. You can keep your chat messaging on peer-to-peer model but when some peer comes online, then it can register with a dedicated server and ask the server to provide list of other registered peers and then you can directly interact with other peers. This will also be helpful if you intend to add features like authentication etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I want to construct a data frame in an Rcpp function, but when I
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I've got a string that has curly quotes in it. I'd like to replace
I am trying to render a haml file in a javascript response like so:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.