Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Request.ServerVariables["REMOTE_ADDR"] and Request.UserHostAddress?

What is the difference between Request.ServerVariables["REMOTE_ADDR"] and Request.UserHostAddress?

Are either of these variables considered unreliable with respect to IP Address spoofing?

like image 508
theycallmemorty Avatar asked Jun 30 '11 15:06

theycallmemorty


1 Answers

The .ServerVariables is provided for compatibility with the old ASP method for getting that information. Most of the information provided through that is now provided through separate properties.

like image 192
Robert Beaubien Avatar answered Sep 21 '22 19:09

Robert Beaubien