Welcome to Vista Banter. You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact support. |
|
Networking with Windows Vista Networking issues and questions with Windows Vista. (microsoft.public.windows.vista.networking_sharing) |
|
LinkBack | Thread Tools | Display Modes |
|
|||
Ping Localhost Returns Invalid IP
I'm having trouble testing an ASP.net app on IIS7. In my application I'm
testing the IP address of the host and acting on it. This test fails on Vista because the system is returning an invalid IP address for localhost. All 3 of the following commands return ::1 rather then 127.0.0.1 Ping localhost HttpContext.Current.Request.UserHostAddress HttpContext.Current.Request.ServerVariables("REMOT E_ADDR") I've turned off ipv6 thinking this might have been the trouble but it still returns the same data. I can ping 127.0.0.1 and that works but by name localhost and via the ASP.net request object is invalid. |