Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: excluding an ip from count Date: Mon, 21 Oct 2013 11:54:42 +0200 Lines: 30 Message-ID: <5264F9E2.5040407@arnowelzel.de> References: <1le1qhen20jek$.hmw9rte8r5ck.dlg@40tude.net> <3adgjwskxq9s$.oyvjblba7itc$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net 5InGWkVf8SSJCmiaU7S0ZQfTSdk+glvGeVKo0dJgqqVKEt0Sb7 Cancel-Lock: sha1:cHSUwA+uZxtBa/OamGE+78q/zNI= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 In-Reply-To: Xref: csiph.com comp.lang.php:11520 Am 21.10.2013 09:32, schrieb Jerry Stuckle: > On 10/21/2013 1:56 AM, Evan Platt wrote: [...] >> Yes, exactly.The public IP is assigned to a DEVICE. Only one device >> truly has that public IP, the rest have a private IP. >> > > Then please explain how many users can have the "public ip" 192.168.x.x. > I have them on my LAN at home; customers have the *exact same* ip on > their LANs. In fact, I would be there are hundreds of thousands (or > millions) of computers out there connected to the internet which have > the ip address 192.168.0.x or 192.168.1.x, as indicated by ifconfig (or > the Linux equivalent ipconfig or ip -a). > > How can this work? By the use of NAT. And no - NAT does not mean that all these computers with private IP addresses have a public IP address as well. You can find this out the hard way when trying to use protocols like IPSec or active FTP or when you try to build a VPN between two LANs which have the same private network address (e.g. 192.168.1.0/16). -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de