Java IP Address Get getWinLocalIp()

Here you can find the source of getWinLocalIp()

Description

get Win Local Ip

License

Apache License

Declaration

public static InetAddress getWinLocalIp() throws UnknownHostException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.net.InetAddress;

import java.net.UnknownHostException;

public class Main {

    public static InetAddress getWinLocalIp() throws UnknownHostException {
        InetAddress inet = InetAddress.getLocalHost();
        return inet;
    }/*from  ww  w .  j av  a 2s  .  c  om*/
}

Related

  1. getPublicIps()
  2. getPublicIpViaHttp()
  3. getStrLocalIP()
  4. getVisibleIp()
  5. getWinLocalIP()