October 1st, 2012, 02:43 PM
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!
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.