stream_socket_client and /etc/hosts file



Does stream_socket_client 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_client with a URI of tcp://dev.example.com:80
it fails.

Any ideas?

Mike
.



Relevant Pages

  • Re: stream_socket_client and /etc/hosts file
    ... as a development platform and VMware Fusion for VM hosting. ... have a OpenSUSE Linux VM that has an Apache 2 web server with multiple ...
    (comp.lang.php)
  • Re: stream_socket_client and /etc/hosts file
    ... as a development platform and VMware Fusion for VM hosting. ... have a OpenSUSE Linux VM that has an Apache 2 web server with multiple ... An error message would be helpful. ...
    (comp.lang.php)
  • Re: stream_socket_client and /etc/hosts file
    ... as a development platform and VMware Fusion for VM hosting. ... have a OpenSUSE Linux VM that has an Apache 2 web server with multiple ... No....ARP is a layer 2 protocol while IP name to address ...
    (comp.lang.php)