Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Shankar Unni Subject: Re: Java hello world link error Date: Mon, 22 Dec 2003 10:38:02 -0800 Lines: 21 Message-ID: References: <000001c3c825$e23a69d0$6664a8c0 AT cipheroptics DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 In-Reply-To: <000001c3c825$e23a69d0$6664a8c0@cipheroptics.com> mauro zallocco wrote: > I noticed that the resulting Test.exe attempts to access the internet. > Is this expected ? > Its trying to access 24.25.4.107 which my getHost tool tells me is > rlghnc-dns-cac-02-dmfe1.nc.rr.com. It's not unexpected or incorrect, but may be suboptimal. This host is obviously your DNS host, and the GCJ runtime is apparently attempting to resolve your true host name from the DNS server using your IP address. The Java runtime insists that InetAddress.getLocalHost() return your true IP address, not "127.0.0.1". Unfortunately, in a dialup setup with automatic connection, such a lookup will trigger your dialer. The "real" Java runtime has put in some workarounds to prevent such a lookup unless it's really needed (i.e. you use a networking class of some sort, or some other class that needs the "real" hostname and IP address). Perhaps the Gnu java runtime doesn't have such tweaks in it.. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/