Mr. Eric Longman,

I ran the code and my IP is what I thought it was. Everything checks out.
The only thing I can think is that Opensrs has not added my IP yet, but
that sould have been in place. 

I guess I'll find out tomorrow.


Thanks.

David James
ThunderLine







_____________________
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

Reply via email to