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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:13:04+00:00 2026-06-06T16:13:04+00:00

I have an ipv4-address stored in a byte array. At index n and until

  • 0

I have an ipv4-address stored in a byte array. At index n and until index n+3 each index takes 4 bytes.

(index)              n       n+1     n+2    n+3                 
[..] [..] [..] [ 1st byte ][ 2nd ] [ 3rd ] [ 4th ] [..] [..]

how to copy this construction to string. I want to receive string like “192.168.0.1”, while

byteArray[n] =   192;
byteArray[n+1] = 168;
byteArray[n+2] = 0;
byteArray[n+3] = 1;

Finally, the problem was solved and the solution is:

string str = recCommand.parameters[10] + "." + recCommand.parameters[11] +
 "." +   recCommand.parameters[12] + "." + recCommand.parameters[13];
  • 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-06T16:13:06+00:00Added an answer on June 6, 2026 at 4:13 pm

    Something like this

            byte[] some = { 192, 168, 0, 1 };
            String ip = "" + some[0] + "." + some[1] + "." + some[2] + "." + some[3];
            Console.WriteLine("ip=" + ip  );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have IPv4 address stored in DB as VARBINARY(4) : four bytes of an
I have about 90000 IPv4 address ranges with data associated with each range e.g.
I have a variable that contains a 4 byte, network-order IPv4 address (this was
I have a problem with a subquery involving IPV4 addresses stored in MySQL (MySQL
I have an InterfaceAddress that returns an ipv4 address (4 octets). However the network
I have a IPv4 address which should be compared against a pattern. A pattern
Does anyone have some code that will determine if an IP address (IPv4 or
I have some code in an asp.net app that needsto get the ipv4 address
I have a model in which I have: ipv4_address = models.IPAddressField(verbose_name=_('ipv4 address'), blank=True, null=True,
I have the following: type KEY = (IPv4, Integer) type TPSQ = TVar (PSQ.PSQ

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.