Re: mysql_connect using version 5.0.1 accesses the internet when host and client are the same system

From: Date: Fri, 17 Sep 2004 01:52:57 +0000
Subject: Re: mysql_connect using version 5.0.1 accesses the internet when host and client are the same system
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-12888@lists.php.net to get a copy of this message
> > "Andrey Hristov" <php@hristov.com> wrote: > > Maybe Windows is different than Linux in the way it handles > > connections on 127.0.0.1 ? What leads me to think about this > > is that only Windows firewalls are mentioned. > Sam Hobbs <SoCalSam@GMail.com> > This is possible and if so then I agree that it is not a php > problem and there is not much more for php to do than to give > a hint somewhere. > It seems that Windows uses TCP/IP more than Linux and that > might be the only difference. I think this is down to a difference between the way the TCP/IP stacks work on the relevant systems. Linux seems to take a "short cut" higher up the stack, so that anything directed to the local loop-back address never really touches the stack itself. If you use ethereal (http://www.ethereal.com/) to monitor the connections on a Linux system, you'll see nothing at all captured for "local" connections. 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 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. Cris H ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com

« previous php.internals (#12888) next »