delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
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 <shankarunni AT netscape DOT net> |
Subject: | Re: Java hello world link error |
Date: | Mon, 22 Dec 2003 10:38:02 -0800 |
Lines: | 21 |
Message-ID: | <bs7dmp$s1q$1@sea.gmane.org> |
References: | <000001c3c825$e23a69d0$6664a8c0 AT cipheroptics DOT com> |
Mime-Version: | 1.0 |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |