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!
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.