JDK-4509678 : obtaining IP netmask for a local network interface
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2001-10-02
  • Updated: 2001-10-02
  • Resolved: 2001-10-02
Related Reports
Duplicate :  
Description

Name: nt126004			Date: 10/02/2001


In some applicationss (like in my case a server brokering for peer-2-peer
communication) it is neccessary to determine if hosts are on the same subnet. To
determine this each client sends its host address and a netmask. Currently there
is no way to obtain netmask from within Java for a local network interface (like
with ifconfig or ipconfig).

In 1.4 this may be a method of class NetworkInterface.getNetmask() when the
interface is local.
(Review ID: 132948) 
======================================================================

Comments
WORK AROUND Name: nt126004 Date: 10/02/2001 Customer Workaround: using JNI to obtain netmask from OS ======================================================================
11-06-2004

EVALUATION This will be examined for tiger. ###@###.### 2001-10-02
02-10-2001