473,461 Members | 1,102 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 50457
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: JezB | last post by:
Any way I can get at a unique "Client ID" within server code ? I'm writing some auditing and I want to record which particular client machine initiated a request, for example. I imagine in an...
4
by: Andy | last post by:
Hi all, In a recent intranet project, I want to limit the access to my mobile asp.net appl only to a set of authorized MAC addresses by determining client's MAC address. Is there any way to...
4
by: rs | last post by:
how I the client tell the server that the socket is closed? or this there an even that informs the server that the clients socket is close? Oh, I am using vb.net 2003 Thanks
4
by: Goh | last post by:
Hi, I would like to know how can we implement a web page that intelligent enough to unique identify that pc have been visit before without any cookies and login user require. I have try...
13
by: Sandeep Singh | last post by:
I am making socket client application in C# how can i get ip address of client who has connected to server
14
by: Ankit Aneja | last post by:
The code of classes given below is for server to which clients connect i want to get ip address of client which has connected pls help how can i get //listen class public class listen {
13
by: James | last post by:
Hi, I'm new to ASP .NET, working on a school project, which i need to find out the client's MAC address. However in my search on the web, i have not find any method available, and some mention...
2
by: WhatHappend | last post by:
I have converted a .Net 1.0 application to .Net 2.0 and the web service invocations have delay of around 10seconds on each intial access. After the first access subsequent access are fast (After a...
3
by: RFD | last post by:
I've been slaving at this problem for over a week, and would appreciate some help from you kind folks. Basic Problem: I have made a server program and a client program. When I try to use the...
15
by: Mike | last post by:
Hi ASP Gurus, Please help me solving my problem. I am trying to get the clients IP address but I am not able to do it successfully. I have tried: Request.ServerVariables("http_user_agent")...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.