On Jul 1, 1:49*am, Jerry Stuckle <jstuck...@attglobal.netwrote:
Quote:
mike.coak...@gmail.com wrote:
Quote:
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:
>
Quote:
ping dev.example.com
>
Quote:
Works no problem (resolves to 172.16.182.128 - the IP VMware assigns
to the Linux VM)
>
Quote:
Firefox & Safari can browse to dev.example.com no problem
>
Quote:
However if I use stream_socket_client with a URI of tcp://dev.example.com:80
it fails.
>
>
>
Neither stream_socket_client() or any other call (ping, browser, etc.)
use /etc/hosts. *That is strictly part of TCP/IP's address resolution
protocol (ARP) handling.
>
Without the error, I have no idea what might be wrong.
No....ARP is a layer 2 protocol (Data Link) while IP name to address
conversion is Layer 3 (network).
But each method described should yield the same result since the TCP/
IP stack entry point is more or less the same and above the resolver
(whose job it is to turn IP names into addresses).
An error message would be helpful. Or try capturing the network
packets.
C.