InetAddress類的一些方法 - nuoyan666的專欄 - 博客頻道 - CSDN.NET

InetAddress類的一些方法 - nuoyan666的專欄 - 博客頻道 - CSDN.NET

瀏覽:733
日期:2024-06-02
InetAddress address=InetAddress.getByName("ZZQ"); System.out.println(address.getHostName());//不必再訪問DNS伺服器,直接返回域名 3. 用IP地址 創建InetAddress對象 使用IP地址創建InetAddress對象(getByName,getAllByName,getByAddress方法 ......看更多