[Mono-list] IPAddress.GetAddressBytes

Chris Howie cdhowie at gmail.com
Tue Feb 19 20:04:08 EST 2008


On Feb 19, 2008 9:13 AM, Dan Smithers <dsmithers at talktalk.net> wrote:
> I have a messaging application that was working until recently using
> IPv4 addresses. I now seem to be getting IPv6 addresses from
> GetAddressBytes.
>
> Is this something in mono that has changed recently?

I don't think that Mono would present an IPv4 address as an IPv6
address unless your host OS was doing this itself.  In order to
diagnose this we'll need to know how you are obtaining the IPAddress
instance.

> Is there a way of forcing IPv4 address format?

Not if the object represents an IPv6 address.  You can check the
IPAddress.AddressFamily property to see which version of address it
represents.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Mono-list mailing list