By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,165 Members | 1,487 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,165 IT Pros & Developers. It's quick & easy.

Get Client IP address

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.