Java IP Address Get getIpAddress()

Here you can find the source of getIpAddress()

Description

get Ip Address

License

Apache License

Declaration

public static String getIpAddress() 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 String getIpAddress() throws UnknownHostException {
        InetAddress address = InetAddress.getLocalHost();
        return address.getHostAddress();
    }//from  ww  w.ja v a2 s . com
}

Related

  1. getIp()
  2. getIpAddress()
  3. getIPAddress()
  4. getIpAddress()
  5. getIpAddress()
  6. getIpAddress()
  7. getIpAddress()
  8. getIpAddress()
  9. getIpAddress()