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

  • SEARCH
  • Home
  • 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 804103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:51:54+00:00 2026-05-14T23:51:54+00:00

I am developing an embedded system and very new to this TCP\IP. My problem

  • 0

I am developing an embedded system and very new to this TCP\IP. My problem is that once I installed my board in a local network and this board will acquire its IP address dynamically, it has to communicate with a client application running on one of the PC(other than DHCP server) in the network. To communicate with this new board the client application is required to know the IP address of the board. What is the way to know the IP address of the board? Will UDP broadcast work for this purpose? If yes please, explain in detail as I am unable to understand it. Please provide me some sample code in C if possible.

  • 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-05-14T23:51:55+00:00Added an answer on May 14, 2026 at 11:51 pm

    The basic idea is:

    • Embedded system software opens a UDP socket, binds it to a well-known port and sets the SO_BROADCAST socket option with setsockopt(). It then calls recvfrom() to wait for packets in a loop.
    • Define a packet format that allows a packet type to be specified. Define a “discovery” packet type.
    • If the embedded system recieves a “discovery” packet, it responds to the sender with a packet that might contain its name/serial number/uptime/status.
    • Client software opens a UDP socket, sets the SO_BROADCAST socket option and sends a “discovery” type packet to the well-known port and the local broadcast address.
    • Client software waits for response(s) from each embedded system with recvfrom(), recording the address of each.
    • Client picks an embedded device and starts communicating directly with it.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My current problem is that I'm developing a embedded system that uses a binary
I'm developing a server component that will serve requests for a embedded client, which
I am developing a system that will have a database backend. I am intending
I am developing embedded system that writes to SD card. As you all know,
I'm developing a user control that will be embedded in Umbraco. It's been a
I am developing a little utility view that will be embedded in several of
I'm developing an embedded system which currently boots linux with console output on serial
I'm currently developing a widget that can be embedded within a page. However, when
I have a problem linking an application for an embedded target. I'm developing on
So I'm developing a new component that requires a little storage requirement. I don't

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.