P
Peter Hurford
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
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