1

我想获取网站的 IP 地址,例如http://www.sssssss.vvv的 IP 地址为 111.22.3.4

使用Java SE,我们可以得到如下。

String ipAddrs = InetAddress.getByName("http://www.sssssss.vvv").getHostAddress();

谁能告诉我用J2ME API 得到同样的东西。

我在网上搜索了这个问题的解决方案,但没有用。

4

0 回答 0