Does west-wind web connect have a function to tell which IP Address the request is coming from?
Not the ip address of the user, but the ip address of the server making the web connect function request?
Yes...
Try:
Request.ServerVariables("LOCAL_ADDR")
Note if you have IPv6 enabled that IP address may be a IPv6 format. To fix that you have to change the adapter to only use IPv4 - otherwise you get the v6 ip.
+++ Rick ---
Hello Rick,
When I ask for the value of Request.ServerVariables("LOCAL_ADDR") it is empty.
Any suggestions?
Thank you,
David
What version of IIS and Web Connection and are you running the .NET Module? I believe the variable is not automatically picked up in the ISAPI handler especially not in older versions. I do believe LOCAL_ADDR
is one of the variables picked up in newer versions.
On older versions you can do the following in wc.ini
(only if running ISAPI) adding an extra server variable to be picked up:
[Extra Server Variables]
Var1=LOCAL_ADDR
+++ Rick ---