Java tutorial
//package com.java2s; import java.net.InetAddress; public class Main { static public String ipAddressToString(InetAddress ip) { return ip.getHostAddress().replaceFirst("%.*", ""); } }