Well, through experimentation I was able to determine that ENV{LOCAL_ADDR}
on NT will give you the IP of the web where you're running the script.
That's *NOT* necessarily the same as the main IP for the box, which is where
your requests to OpenSRS will originate.
The following code snippet *MIGHT* get you the address you need (in my case,
I have a machine where the primary IP is not the same as what the machine
name resolves to, so it doesn't work on my box. 99% of the time, though,
this should be right):
1) Add the line "use Win32" somewhere near the top of verify_install.cgi
2) After the line in verify_install that reads "print_message("OpenSRS
Client IP Address", $ENV{LOCAL_ADDR});", add the following lines:
my $addr; my $vwaddr;
($addr) = (gethostbyname(Win32::NodeName))[4];
$vwaddr = join(".",unpack("C4",$addr));
print_message("Client IP Address",$vwaddr);
Run the verify_install.cgi script again. You should get a more likely
candidate of the IP address that will be used to connect to OpenSRS. You'll
need to communicate with OpenSRS and make sure they have configured this new
address in their servers.
Please let me know if this works, and I will add it to our HOWTO document...
Regards,
Eric Longman
Atl-Connect Internet Services
+-------------------------------------------------------+
| Atl-Connect Internet Services http://www.atlcon.net |
| 3600 Dallas Hwy Ste 230-288 770 590-0888 |
| Marietta, GA 30064-1685 [EMAIL PROTECTED] |
+-------------------------------------------------------+
----- Original Message -----
From: "opensrs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 24, 2000 3:15 PM
Subject: invalid ip on NT
Can someone help me narrow this down?
I have username correct, the key correct, everything i can see set
properly.
I get this error on the verify_install.cgi @ Logging into opensrs server:
ERROR: Unable to login to server: 401 Unrecognized Peer
On reg_system.cgi I get
Authentication Error: Connection refused: invalid ip address
I do know that on the verify_install the ENV{SERVER_ADDR} returns an empty
value (not supported on my nt). But ENV{LOCAL_ADDR} returns the correct IP
(thanks Doug).
Could this be the prob. If so, how do I get opensrs to recognize my server
IP.
I am running activestate on nt 4 w/ iis 4.
Dave (fustrated) James
ThunderLine