[SOLVED] Client IP address

Answered Closed
0
0

Hi,

How can I get the requesting client IP address? I found the Wisej.Core.ClientProfile, ClientBrowser etc but I didn’t see anything about IP address.

Best,

Alex

  • You must to post comments
Great Answer
0
0

Hi there,

In a dev. environment, I found that “REMOTE_ADDR” always returned 127.0.0.1

“HTTP_FORWARDED” got the client address and port for me.

Darren

  • You must to post comments
Great Answer
0
0

Look at the collection Application.ServerVariables

https://msdn.microsoft.com/en-us/library/ms524602(v=vs.90).aspx

Everything related to the environment, client, browser and server is reachable from Application.

Best,

Luca

  • Luca (ITG)
    Forgot to add that it should be “REMOTE_ADDR”.
  • You must to post comments
Showing 2 results