From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lejanson Go Subject: INADDR_ANY Date: Tue, 15 Jul 2003 05:07:42 -0700 (PDT) Sender: linux-c-programming-owner@vger.kernel.org Message-ID: <20030715120742.94906.qmail@web12403.mail.yahoo.com> Mime-Version: 1.0 Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-c-programming@vger.kernel.org Hello good day to everyone. my other email ad is a member of this list but im just confuse so i use this email ad instead to ask some questions. i have a question regarding network programming. my program connects to a server using INADDR_ANY as the host address. does the macro INADDR_ANY points to loopback interface? what if the /etc/hosts fileis edited and the value of localhost is changed to "50.50.50.20" from "127.0.0.1" is it possible the program will fail? considering that using 127.0.0.1 as "localhost" ip add the program functions well. it puzzles me. since the program was supposed to work. any help would be very much appreciated. thanks a lot. lejanson __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com