开发者

getting ip address from host name in BlackBerry 6

开发者 https://www.devze.com 2023-03-29 23:51 出处:网络
Please let me know whether there is way to getthe IP address of server from it\'s domain name. for example:

Please let me know whether there is way to get the IP address of server from it's domain name. for example:

Domain name is : http://www.gmail.com

then i want api like

public String getIPAddress(String hostname) { Some code here

return ipAddress; }

I am using Blackberry 6 api, which does not have InetAd开发者_运维知识库dress class.


I dont think there is an API available in BB

http://supportforums.blackberry.com/t5/Java-Development/is-there-a-way-to-get-the-remote-ip-address-given-its-hostname/td-p/171164

0

精彩评论

暂无评论...
验证码 换一张
取 消