From owner-freebsd-java@FreeBSD.ORG Wed Apr 9 10:36:42 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB75D37B405 for ; Wed, 9 Apr 2003 10:36:42 -0700 (PDT) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0652943FBD for ; Wed, 9 Apr 2003 10:36:42 -0700 (PDT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Wed, 9 Apr 2003 18:36:40 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 193JUe-0002PR-00; Wed, 09 Apr 2003 18:36:16 +0100 Date: Wed, 9 Apr 2003 18:36:16 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: freebsd-java@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant Subject: Question about native 1.4.1, InetAddress.getLocalHost() - bug? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 17:36:43 -0000 Should this do what I think it should? When I created a ServerSocket using s = new ServerSocket(1234, 0, InetAddress.getLocalHost()); I wound up with netstat reporting that I had a TCP connection listening on 192.168.0.1.1234. From the description of the call, I'd expect to see it listening on 127.0.0.1.1234. Using s = new ServerSocket(1234, 0, InetAddress.getByName("localhost")); demonstrates the behaviour I'd expect from the first call. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ "...perl has been dead for more than 4 years." - Abigail in the Monastery