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);
    }
}

 

posted @ 2021-12-01 21:03  骄傲的林先生  阅读(93)  评论(0)    收藏  举报