Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Friends,
C#
ipAddress = context.Request.ServerVariables["REMOTE_ADDR"];


I am getting ip in ipAddress is "::1" i need it "127.0.0.1"
::1 => Loopback IP of IPV6
127.0.0.1 => Loopback IP of IPV4

still i have disabled IPV6 from network properties and enabled IPV4.

Why my system is giving me IPV6 loopback insted of IPV4 loopback?

Note: I am working on RDS(Remot Desktop Server) with Windows8 OS.

Thanks in Advance.
Posted

1 solution

Did you followed this steps to disable IPV6 loopback

http://www.techunboxed.com/2012/08/how-to-disable-ipv6-in-windows-8.html[^]
 
Share this answer
 
Comments
Amol Lendave 21-Aug-14 6:56am    
Thank you so much..

It helps me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900