var dnsService = Components.classes["@mozilla.org/network/dns-service;1"].
getService(Components.interfaces.nsIDNSService);
var ip = dnsService.resolve(dnsService.myHostName, false).getNextAddrAsString();
Nothing difficult!
This blog is about Firefox extension development. During my work in this area I've solved different problems. And I will be glad to share my experience with other developers. I hope that my blog will help someone to solve their problems.
var dnsService = Components.classes["@mozilla.org/network/dns-service;1"].
getService(Components.interfaces.nsIDNSService);
var ip = dnsService.resolve(dnsService.myHostName, false).getNextAddrAsString();
No comments:
Post a Comment