-
October 1st, 2012, 02:43 PM
#1
Help Parsing String into an ip address
So im trying to parse a string into a Ip Address but i have a problem, the IPAddress.Parse method only works for ipv4 address's how do i parse ANY Ip address into a string, if i use the IPaddress.Parse method on my public(remote) IP it throws an exception but on ipv4 local ip's it doesn't, how do i parse ANY ip address the user inputs as a string as an Ip Address? and allow the socket to bind to it? Sometimes parsing it works but the socket says invalid ip when on the socket.bind() call, Please help!
-
October 2nd, 2012, 05:17 AM
#2
Re: Help Parsing String into an ip address
The IPAddress.Parse static method will handle IPv6 addresses (I checked MSDN for .Net 1.1, 2.0. 3.0, 3.5, 4.0, and 4.5). Post the exception you are getting.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|