IP地址案例 package ch17; import javax.swing.text.Style; import java.net.InetAddress; /** * Created by Jiqing on 2017/1/5. */ public class InetAddressTest { public static void main(String[] args) throws Exception{ InetAddress ip = InetAddress.getByName("w…