-4

Possible Duplicate:
How can I get the client's IP address in ASP.Net MVC?

I have tried many solutions. But it still show the IP address : 127.0.0.1 . Actually, my address is not that one.

Can anyone help me please.

thanks.

Community
  • 1
  • 1
Nothing
  • 2,644
  • 11
  • 64
  • 115
  • 1
    Your computer? bad news - your local address to ysour local web server IS 127.0.0.1. You can not access the client computer configuration. – TomTom Oct 28 '11 at 11:04
  • @Ramhound : No, I'm not trying to access from my machine. The web site is at another server. And anyway, my Ip address not 127.0.0.1 . – Nothing Oct 28 '11 at 11:18

1 Answers1

0
Request.UserHostAddress();

Or

Request.ServerVariables["REMOTE_ADDR"];
Curtis
  • 101,612
  • 66
  • 270
  • 352