Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get an IP number to open an xsl file on the server...

Status
Not open for further replies.

Titoi

Programmer
Apr 18, 2002
1
US
Hi,

I am trying to open a file on the server. To open my file I need the URL address.
Here is the thing:
we have a server, a firewall which is using NAT to translate the IP address. So I get the serverName on my asp page, I get the virtual url. I am sending the serverName to my DLL, to try to open my file.

Dim surl as string
Set xmlhttpDoc = CreateObject("Msxml2.XMLHTTP")
surl = sServerName + "/Truc/MyFile.xsl"
xmlhttpDoc.Open "GET", surl, False

If I did not have this firewall, it would work, but because what I sent to my dll is the virtual address, it cannot open my file.
I think I need to find a way to get the IP address. Does someone have any idea?

Thanks
 
i have seen a site where my inside IP address was shown but that was when i was using a proxy.
i don't know if this would work with NAT too.
if you visit when using NAT you can find out. look at X-Forwarded-For section about half way down. i don't know how this script works but it's source should be around somewhere.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top