Click here to Skip to main content
15,917,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionQuestion Pin
nithydurai29-May-08 2:08
nithydurai29-May-08 2:08 
AnswerRe: Question Pin
eyeseetee29-May-08 2:35
eyeseetee29-May-08 2:35 
GeneralRe: Question Pin
J4amieC29-May-08 2:37
J4amieC29-May-08 2:37 
AnswerRe: Question Pin
J4amieC29-May-08 2:38
J4amieC29-May-08 2:38 
GeneralRe: Question Pin
Mogaambo29-May-08 2:45
Mogaambo29-May-08 2:45 
AnswerRe: Question Pin
Jagadeesh Jupalli29-May-08 3:25
Jagadeesh Jupalli29-May-08 3:25 
AnswerCP IGNORE: Repeat offender Pin
leckey29-May-08 12:33
leckey29-May-08 12:33 
QuestionWhich one is the Best way?? (client IP address) Pin
Jagadeesh Jupalli29-May-08 2:08
Jagadeesh Jupalli29-May-08 2:08 
Hi,

I am able to get the client IP address using the following 3 ways

string test = Request.UserHostAddress.ToString();
string test2 = Request.ServerVariables["REMOTE_ADDR"].ToString();
string test3 = Context.Request.UserHostAddress.ToString();

All are returning the same values...

But which one is the Best (accuracy and performance wise) and More reliable in all respects. Which one should I use??

Regards,
~JJ
AnswerRe: Which one is the Best way?? (client IP address) Pin
Mogaambo29-May-08 2:44
Mogaambo29-May-08 2:44 
GeneralRe: Which one is the Best way?? (client IP address) Pin
Jagadeesh Jupalli29-May-08 3:00
Jagadeesh Jupalli29-May-08 3:00 
GeneralRe: Which one is the Best way?? (client IP address) Pin
Mogaambo29-May-08 3:06
Mogaambo29-May-08 3:06 
AnswerRe: Which one is the Best way?? (client IP address) Pin
Guffa29-May-08 10:33
Guffa29-May-08 10:33 
QuestionHTTP:404? Pin
madhavi.kona29-May-08 2:01
madhavi.kona29-May-08 2:01 
AnswerRe: HTTP:404? Pin
eyeseetee29-May-08 2:07
eyeseetee29-May-08 2:07 
QuestionReading System Information in ASP.Net Pin
vinay_K29-May-08 1:30
vinay_K29-May-08 1:30 
AnswerRe: Reading System Information in ASP.Net Pin
eyeseetee29-May-08 2:07
eyeseetee29-May-08 2:07 
QuestionRe: Reading System Information in ASP.Net Pin
vinay_K29-May-08 2:21
vinay_K29-May-08 2:21 
AnswerRe: Reading System Information in ASP.Net Pin
eyeseetee29-May-08 2:33
eyeseetee29-May-08 2:33 
QuestionRe: Reading System Information in ASP.Net Pin
vinay_K29-May-08 2:51
vinay_K29-May-08 2:51 
Questionstop CollapsiblePanelExtender1 flicker Pin
eyeseetee29-May-08 1:20
eyeseetee29-May-08 1:20 
AnswerRe: stop CollapsiblePanelExtender1 flicker Pin
eyeseetee29-May-08 2:26
eyeseetee29-May-08 2:26 
Questionstrange behaviour, validation is not working Pin
Mogaambo29-May-08 1:16
Mogaambo29-May-08 1:16 
QuestionDynamically adding and deleting rows in asp:table Pin
prezident29-May-08 1:08
prezident29-May-08 1:08 
AnswerRe: Dynamically adding and deleting rows in asp:table Pin
Mogaambo29-May-08 1:46
Mogaambo29-May-08 1:46 
GeneralRe: Dynamically adding and deleting rows in asp:table Pin
prezident29-May-08 2:24
prezident29-May-08 2:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.