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 7795921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:12:42+00:00 2026-06-01T23:12:42+00:00

I need to assign a unique IP address (local) for a device we will

  • 0

I need to assign a unique IP address (local) for a device we will be connecting into our system via. USB. The actually assigning I will do over RS232 (don’t ask!) by telling the device what it’s IP is.

I would like to somehow find a usable address relative to the local PC in order to tell the device which to use. Is there a way of enumerating or finding a usable address in C#? I don’t want to simply use a fixed one in case of possible clashes with other devices.

I’ve done a search here and there’s lots of people wanting to find the current IP, or the IP of an already existing device, but I can’t find much about generating a usable, unique one.

Thanks for any assistance you can give me.

  • 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-01T23:12:43+00:00Added an answer on June 1, 2026 at 11:12 pm

    From http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol

    The Dynamic Host Configuration Protocol (DHCP) is a network
    configuration protocol for hosts on Internet Protocol (IP) networks.
    Computers that are connected to IP networks must be configured before
    they can communicate with other hosts. The most essential information
    needed is an IP address, and a default route and routing prefix. DHCP
    eliminates the manual task by a network administrator. It also
    provides a central database of devices that are connected to the
    network and eliminates duplicate resource assignments. In addition to
    IP addresses, DHCP also provides other configuration information,
    particularly the IP addresses of local Domain Name Server (DNS),
    network boot servers, or other service hosts. DHCP is used for IPv4 as
    well as IPv6. While both versions serve much the same purpose, the
    details of the protocol for IPv4 and IPv6 are sufficiently different
    that they may be considered separate protocols.[1] Hosts that do not
    use DHCP for address configuration may still use it to obtain other
    configuration information. Alternatively, IPv6 hosts may use stateless
    address autoconfiguration. IPv4 hosts may use link-local addressing to
    achieve limited local connectivity.

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

Sidebar

Related Questions

I need to assign a variable which will be used to create the id
On the server application, I need to assign to each connected client an unique
I am looking to develop a system in which i need to assign every
I need to assign an active class to my main-level navigation rendered by wordpress.
I am exporting datatable in MSEXCEL.I need to Assign MultipleLines in a cell in
A TreeNode class has Text Name Tag I need to assign more values to
What I want to do is following. Inside a function, I need to assign
I need to get UserCarId(int) from this query and assign to int type variable.
I need to find the text 'ifeq ($(Param1)' using grep. I try to assign
Need to insert selected text on the page into textarea. There must be some

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.