Re: mysql_connect using version 5.0.1 accesses the internet when host and client are the same system
| From: | Sam Hobbs | Date: | Fri, 17 Sep 2004 14:04:17 +0000 |
| Subject: | Re: mysql_connect using version 5.0.1 accesses the internet when host and client are the same system | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12892@lists.php.net to get a copy of this message | ||
"Cris H" <cysgwr_eryri@yahoo.co.uk> wrote in message
news:20040917015257.67611.qmail@web25106.mail.ukl.yahoo.com...
>
> I understand (it's been a while) that Windows behaves slightly
> differently and has no real loop-back, so it uses the stack eben
> for local connections. I have a vague recollection of similar
> issues using a home-grown server a few years ago. This page
> (http://www.ethereal.com/media.html) has a bit more information
> in the differences between the loop-back mechanisms on each
> system.
You know more than I do, although our minds do get filled with details and I
sure need refreshers of details often.
I have been successful in writing a few simple samples of sending and/or
receiving UDP. In particular, see my:
UDP Send and Receive Using CAsyncSocket
http://simplesamples.info/MFC/UDPSendReceive.php
I tried it to see what happens relevant to this discussion, and got some
interesting results. When I remove ZoneAlarm's configuration of the program,
so that it does not know anything about the UDPSendReceive program, then
when I execute the program, ZoneAlarm asks if it can access the internet. If
I answer by saying to deny access, then the send does not work. However
every subsequent send (without closing the socket) works. If when I tell
ZoneAlarm to deny access, I also specify to save that answer, then when I
execute the program ZoneAlarm does not ask anything, as it should (not), but
the first send does not work. Every subsequent send does work.
So I am a little confused, but this is not a php topic. I am curious about
the details and I will check into it when I have time, but I will go to a
networking group or forum to pursue this further.
I have used ethereal but it has been a while. I have not read that article
but that is where I am likely to start when I pursue the issues I describe
above.
> You may also want to check that everything is set up
> correctly in your 'hosts' file (C:\Windows\hosts ?) so that the
> system itself knows as much as it can.
I have the following in my hosts file:
127.0.0.1 localhost
I assume that is correct.