Does stream_socket_c lient use the /etc/hosts file? I'm using Mac OSX
10.5.3 as a development platform and VMware Fusion for VM hosting. I
have a OpenSUSE Linux VM that has an Apache 2 web server with multiple
named virtual hosts. I use the Macs /etc/hosts file to provide DNS
resolution for the development web sites. I can ping the DNS names and
browse to them with no issues. For example:
ping dev.example.com
Works no problem (resolves to 172.16.182.128 - the IP VMware assigns
to the Linux VM)
Firefox & Safari can browse to dev.example.com no problem
However if I use stream_socket_c lient with a URI of tcp://dev.example.com :80
it fails.
Any ideas?
Mike
10.5.3 as a development platform and VMware Fusion for VM hosting. I
have a OpenSUSE Linux VM that has an Apache 2 web server with multiple
named virtual hosts. I use the Macs /etc/hosts file to provide DNS
resolution for the development web sites. I can ping the DNS names and
browse to them with no issues. For example:
ping dev.example.com
Works no problem (resolves to 172.16.182.128 - the IP VMware assigns
to the Linux VM)
Firefox & Safari can browse to dev.example.com no problem
However if I use stream_socket_c lient with a URI of tcp://dev.example.com :80
it fails.
Any ideas?
Mike
Comment