472,119 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

Get Client IP address

SA
Hi,

In my ASP.NET application I am using client IP, I was using

"Request.ServerVariables["REMOTE_ADDR"]" to get client IP. Now I moved my
servers to under Cisco content switch for load balancing. Now
"Request.ServerVariables["REMOTE_ADDR"]" and

"Request.UserHostAddress", both returning Content switch IP instead of
client IP. Is there any way I can get client IP from C# under load balancing
mode??

Thanks in Advance,

SA.
Jan 24 '07 #1
3 50196
SA

You didn't say if you're using a web service or a web page. Please follow
the examples:

ASP.net page
=========
Response.Write(Request.UserHostAddress())

Web Service
=========
Context.Request.ServerVariables ["REMOTE_ADDR"]
--
Regards,
Robson Siqueira
Enterprise Architect
"SA" <sa****@megabytesystems.comwrote in message
news:%2******************@TK2MSFTNGP06.phx.gbl...
Hi,

In my ASP.NET application I am using client IP, I was using

"Request.ServerVariables["REMOTE_ADDR"]" to get client IP. Now I moved my
servers to under Cisco content switch for load balancing. Now
"Request.ServerVariables["REMOTE_ADDR"]" and

"Request.UserHostAddress", both returning Content switch IP instead of
client IP. Is there any way I can get client IP from C# under load
balancing mode??

Thanks in Advance,

SA.


Jan 24 '07 #2
My Sources say "Doubt it".

Cheers,
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"SA" wrote:
Hi,

In my ASP.NET application I am using client IP, I was using

"Request.ServerVariables["REMOTE_ADDR"]" to get client IP. Now I moved my
servers to under Cisco content switch for load balancing. Now
"Request.ServerVariables["REMOTE_ADDR"]" and

"Request.UserHostAddress", both returning Content switch IP instead of
client IP. Is there any way I can get client IP from C# under load balancing
mode??

Thanks in Advance,

SA.
Jan 24 '07 #3
SA
Hi Robson, Thanks for the reply.

It's a web page. I tried both in the web page, both are returning Content
switch IP instead of client IP :(.

Thanks,
Sudheer.
"Robson Siqueira" <ro****@robsonfelix.comwrote in message
news:uw****************@TK2MSFTNGP05.phx.gbl...
SA

You didn't say if you're using a web service or a web page. Please follow
the examples:

ASP.net page
=========
Response.Write(Request.UserHostAddress())

Web Service
=========
Context.Request.ServerVariables ["REMOTE_ADDR"]
--
Regards,
Robson Siqueira
Enterprise Architect
"SA" <sa****@megabytesystems.comwrote in message
news:%2******************@TK2MSFTNGP06.phx.gbl...
>Hi,

In my ASP.NET application I am using client IP, I was using

"Request.ServerVariables["REMOTE_ADDR"]" to get client IP. Now I moved my
servers to under Cisco content switch for load balancing. Now
"Request.ServerVariables["REMOTE_ADDR"]" and

"Request.UserHostAddress", both returning Content switch IP instead of
client IP. Is there any way I can get client IP from C# under load
balancing mode??

Thanks in Advance,

SA.



Jan 25 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by JezB | last post: by
4 posts views Thread by Andy | last post: by
14 posts views Thread by Ankit Aneja | last post: by
13 posts views Thread by James | last post: by
2 posts views Thread by WhatHappend | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.