obtaining IP netmask for a local network interface

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.4.0
    • Component/s: core-libs
    • generic
    • generic



      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)
      ======================================================================

            Assignee:
            Unassigned
            Reporter:
            Nathanael Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: