Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
System.Net.IPAddress constructor
Message
 
To
18/02/2005 10:13:35
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00985599
Message ID:
00988325
Views:
45
Chris,
That is what I had to do (see bottom of original message). The problem is that I receive the IP address in the form of a byte array and found it odd that I have to translate from a byte array into a string before I can create my IPAddress object.

Einar
>Einar,
>
>If you still can't get it to work, try this:
>
>
>System.Net.IPAddress IP = System.Net.IPAddress.Parse("127.0.0.1");
>
>
>>I can't figure out why this code throws an error:
>>
>>System.Byte[] ba = {127,0,0,1};
>>System.Net.IPAddress ip = new System.Net.IPAddress(ba);
>>
>>Einar
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform