Sorry to bump an old post, but I think this post is what I’m looking for and the GitHub script is 404 now.
What I’m hoping for is a a way for my SmartThings Hub to report to my phone what the public IP address is at my house so I can RDP to a home computer when I’m at work (without paying for a static IP upgrade)
And I believe SmartThings has broken this. Any local hubaction is not able to access WAN IP addresses at the moment.
I am unable to provide any workarounds at this point. Still waiting on confirmation of the issue and if it was broken or restricted for a reason.
I really think there should be a hub.publicIp option, but for now, I would suggest you look at some of the Dynamic DNS services out there that you could just get the ip from a myhose.mydomain.com and that would work…
That’s odd, my device is still working with the IP address. But then, my IP address has not changed recently, so not sure that I would see the problem.
Sucks this doesnt work now. It was exactly what I was looking for. I have Smartthings at a vacation cabin in a place with no ISPs so the whole setup runs from a Sprint netgear 6100D LTE router. So far I dont trust that the Dyndns updater on the router is working properly, but I can access smartthings externally fine.
This is exactly the kind of thing I was looking for, but when trying to install it now in the IDE it fails outright about some method not being supported. Oh well.
Thank you Patrick, I was able to hack this to pull the status page from my dd-wrt router and use a regex to cull the WAN IP. I was never able to get the XML parse to work, but this is my first ST attempt so it could be me.
Years later this still works, anyone know how to update it so it will display the value of the IP address in the new app? I can still see the IP address under device properties in the IDE.
I don’t think this is going to function in the new app like it does in the old app, but I did just create a WebCoRe piston that will read the ‘publicIp’ attribute, save it in a variable, and then send a push notification with the results. Just modify it with a trigger of your choice. To add the virtual device to Webcore, you have to add it under “Which pollable devices”.
I still use this dth. It’s annoying Samsung/ST still can’t get the custom capability tools out of Alpha stage so we can adjust these great dths to show in the Connect app. To be able to see my ip address in the new app I found this dth by @guxdude, which turned out to be way more useful, I use it as a rolling notification banner so I can cancel my less important push notifications…