API地址
import java.net.InetAddress; import java.net.UnknownHostException; /** * Copyright (C), 2018-2021, Mr.Lin * Author: Mr.Lin * Date: 2021/12/1 21:00 * FileName: API_ * Description: */ public class API_ { public static void main(String[] args) throws UnknownHostException { InetAddress localHost = InetAddress.getLocalHost(); System.out.println(localHost); } }
浙公网安备 33010602011771号