Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Host Name / IP behind a load balancer

Reply
Thread Tools

Host Name / IP behind a load balancer

 
 
Peter Hurford
Guest
Posts: n/a
 
      08-07-2003
Hi,

Have just noticed some code not working properly. I have a couple of
identical web servers set up, and a load balancer out front.

I execute the line of code....

Response.Write Request.ServerVariables("SERVER_NAME") & " (" &
Request.ServerVariables("LOCAL_ADDR") & ")"


Problem is, in this environment, it's giving me the name and the ip
address of the load balancer, not the server.

The reason I'm doing this (obviously) is I want to be able to know which
of the servers is serving the page.

The code, registry etc. on each server are identical, and must remain
so. The only differences (of course) are things like their host names,
ip addresses etc.

I'm sure I've seen this done but can't remember how, and can't find
anything on the msdn. Anyone out there know?

TIA

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Aaron Bertrand - MVP
Guest
Posts: n/a
 
      08-07-2003
See the WMI script here
http://www.aspfaq.com/2263



"Peter Hurford" <> wrote in message
news:#...
> Hi,
>
> Have just noticed some code not working properly. I have a couple of
> identical web servers set up, and a load balancer out front.
>
> I execute the line of code....
>
> Response.Write Request.ServerVariables("SERVER_NAME") & " (" &
> Request.ServerVariables("LOCAL_ADDR") & ")"
>
>
> Problem is, in this environment, it's giving me the name and the ip
> address of the load balancer, not the server.
>
> The reason I'm doing this (obviously) is I want to be able to know which
> of the servers is serving the page.
>
> The code, registry etc. on each server are identical, and must remain
> so. The only differences (of course) are things like their host names,
> ip addresses etc.
>
> I'm sure I've seen this done but can't remember how, and can't find
> anything on the msdn. Anyone out there know?
>
> TIA
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco 11500 Load Balancer kejoseph@hotmail.com Cisco 2 01-18-2005 10:30 PM
Cisco Content Switch - Load Balancer Ilja Kessebohm Cisco 0 10-07-2004 01:09 PM
Cisco Load Balancer and Linux Doug Farrell Cisco 3 09-16-2004 11:52 AM
Run commands remotely on a BIG-IP load balancer Prasad Cisco 1 02-05-2004 01:20 AM
Open Source Load Balancer Cisco 4 07-24-2003 11:31 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57