This article shows you how to set Vista to prefer IPv4 to IPv6 when attempting connections:
http://www.microsoft.com/technet/com...uy/cg1005.mspx
To selectively disable Pv6 components and configure behaviors for IPv6 in Windows Vista,
create and configure the following registry value (DWORD type):
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\tcpip6\Parameters\DisabledComponents
DisabledComponents is set to 0 by default.
The DisabledComponents registry value is a bit mask that controls the following series of flags,
starting with the low order bit (Bit 0):
Bit 0 Set to 1 to disable all IPv6 tunnel interfaces, including ISATAP, 6to4, and Teredo tunnels.
Default value is 0.
Bit 1 Set to 1 to disable all 6to4-based interfaces. Default value is 0.
Bit 2 Set to 1 to disable all ISATAP-based interfaces. Default value is 0.
Bit 3 Set to 1 to disable all Teredo-based interfaces. Default value is 0.
Bit 4 Set to 1 to disable IPv6 over all non-tunnel interfaces, including LAN interfaces and
Point-to-Point Protocol (PPP)-based interfaces. Default value is 0.
Bit 5 Set to 1 to modify the default prefix policy table to prefer IPv4 to IPv6 when
attempting connections. Default value is 0.
So, you'd set the first 4 bits to 0 and bit 5 to 1.
That will allow IPv6, but the system will prefer IPv4.
To only prefer IPv4 over IPv6 (what you want), set the value to 0x20
To disable IPv6 over all interfaces *and* prefer IPv4 to IPv6, set it to 0xFF
You must restart the computer for the changes to the DisabledComponents registry value to take
effect.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
===================================
"Mark Rae" <ma**@markNOSPAMrae.netwrote in message news:uj**************@TK2MSFTNGP05.phx.gbl...
Hi,
Now that the VS.NET 2005 SP1 update patch is with us, I'm in the process of moving my main
development environment onto 64-bit Vista Business Edition - so far, so good...
However, there is a bit of a gotcha with Request.UserHostAddress...
Under IIS6 and earlier, that would return a standard xxx.xxx.xxx.xxx IP address. However, Vista
enables IP6 by default, which makes Request.UserHostAddress return an IP6 address e.g.
"fe80::2032:39ab:3f57:fffb%10"
Easy enough to disable IP6, of course, but does anyone know a way to return an IP4 address from
IIS7 without disabling IP6, or mucking about with LMHOSTS...
Haven't been able to find a way so far...
http://west-wind.com/WebLog/posts/8839.aspx
http://forums.asp.net/thread/1667538.aspx
Any assistance gratefully received.
Mark