05-04-2016, 06:50 PM
Either of those classes simply performs a HTTP query (GET or POST) using the operating system's networking libraries. For example, if you use your web browser to go to "http://checkip.dyndns.org", you will see that the DynDNS server is kind enough to tell you your public IP address (i.e. the output is "Current IP Address: xxx.xxx.xxx.xxx"). Using either class to query that same URL will allow you to retrieve the same exact string that your web browser showed, only from within a plugin of course.
So you need a web server and some content to serve up for either class to be of any use. How to do that is beyond the scope of the CORE forum, so you'll have to do a Google search for getting started with web development.
So you need a web server and some content to serve up for either class to be of any use. How to do that is beyond the scope of the CORE forum, so you'll have to do a Google search for getting started with web development.