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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOSTNAME works IP DONT

Status
Not open for further replies.

medox

Programmer
Feb 28, 2002
21
US
Hi --
I have two webserver that need to talk to each other using MSXML 4.0.
When I'm connecting using the hostname:
(e.g.
Set xhttp = Server.createObject("Msxml2.SERVERXMLHTTP.4.0")
xhttp.open "POST", " False
), works fine, but it wont work if I try to use the IP address instead.
e.g.
Set xhttp = Server.createObject("Msxml2.SERVERXMLHTTP.4.0")
xhttp.open "POST", " False
)

Any suggestions?
Thanks,
Luiz
///edox
..
 
Is that site the default in IIS or is it configured with a host header?

I hope you find this post helpful.

Regards,

Mark
 
If I understood your question, the answer is No, the location I'm trying to reach (ex. 'myFolder' is a virtual directory, not the default web.

I'm rebuilding our webserver and the webserver is the one who makes XLM calls to the '10.10.1.15' computer. Right now both are in the same domain (maybe thats why using the host name works), but the webserver is gonna be 'outside' our domain when I set it on production, so only IP works for sure.

Thanks again,
Luiz ///edox
 
Why would only IP work? You should try testing with the FQDN of the machine.

I may not be asking my question right regarding the sites.

In IIS, how many sites are configured? Forget about the virtual directories. It is the sites we are concerned with. If your server has more than one site using that IP address (using host headers) then that is why you can't resolve to only the IP. But since IP addresses change all the time, I would recommend testing with the FQDN anyway. If your ISP ever changes or modifies their IPs in any way you could end up being down or having more work to do later down the road.

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top