473,785 Members | 2,910 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET How can I get client IP after load balancer

I am attempting to get access to the client IP after a request has gone
through a load balancer.

HttpContext.Cur rent.Request.Us erHostAddress is what I am using and getting
what appears to be the load balancers IP.

Any ideas on how I could get around this?

Thanks.
Nov 17 '05 #1
1 3382
kapsolas wrote:
I am attempting to get access to the client IP after a request has
gone through a load balancer.
HttpContext.Cur rent.Request.Us erHostAddress is what I am using and
getting what appears to be the load balancers IP.


There is no real standard for this, but load balancers usually pass the real
client IP through as a custom header (e.g. "X-Client-IP"). Dump your
Request.Headers collection and see what it is called in your case.

--
Chris Priede
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1626
by: DT | last post by:
We have service oriented architecture that comprises of a number of Win2k/IIS boxes. Some of these web service applications access an AS400 system for data acess (We are using HitSoftware's Ritmo .net native driver). For fail over we route these requests through a hardware based load balancer (BigIP). The BigIP allows us to fail over to a secondary AS400 system in case the primary one fails.
2
2367
by: thinkfr33ly | last post by:
I have a WAP site powered by ASP.NET Mobile controls. We're using cookieless sessions and have an F5 Load Balancer that balances the load between two web servers. Every once in a while we'll get the following exception: System.FormatException: Invalid length for a Base-64 char array. at System.Convert.FromBase64String(String s) at System.Web.UI.LosFormatter.Deserialize(String input) at...
2
3021
by: Softworks | last post by:
We're in the process of putting a load balancer into the mix. The setup will require that we run SSL on the load balancer. Checking for request.IsSecureConnection worked fine when the SSL certificate was on the web server. Now it returns false when SSL is on the load balancer. Is there a way to check for a secure connection when SSL is on the load balancer? TIA Tina
0
2248
by: harisankar22 | last post by:
Hi All, I am trying to configure a load balancer environment with mod_jk and tomcat workers. I have 2 applications app1 deployed on a set of servers, and app2 deployed on another set of servers. Can I use a single load balancer to balance load among two types of application?? ie all request to app1 should go to servers where app1 is deployed and requests to app 2 should go to set of servers where app 2 is deployed. Is this possible??...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10092
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3647
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.