Announcement

Collapse
No announcement yet.

hs.WanIP Not Working?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    hs.WanIP Not Working?

    It has been working for the last couple of months, but today it started returning "Unknown" instead of my WAN IP address.

    I saw a similar post from 2016, but no real answer. I tried Jon00's IPUpdate - it worked one time, but after that the log showed:

    Code:
     [TABLE="cellspacing: 0"]
    [TR]
    [TD="colspan: 1, align: left"][COLOR=#FF0000]Jan-10 6:58:52 PM[/COLOR][/TD]
     			[TD="colspan: 1, align: left"][COLOR=#FF0000] [/COLOR][/TD]
     			[TD="colspan: 3, align: left"][COLOR=#FF0000]Jon00_IPUpdate[/COLOR][/TD]
     			[TD="colspan: 8, align: left"][COLOR=#FF0000]Error: Obtaining IP Address from Homeseer hs.wanip command failed.[/COLOR][/TD]
     		[/TR]
    [/TABLE]
    Has anybody else had this problem?

    #2
    FWIW, I resolved it by using:

    Code:
    WAN_IP = hs.GetURL("checkip.homeseer.com:8245","/",TRUE,80)
    hs.SetDeviceStringByName("External_IP_Address",WAN_IP,true)

    Comment


      #3
      I've been using this for the past few years due to issues with hs.wanip:

      PHP Code:
       ip hs.GetURL("http://bot.whatismyipaddress.com","/",False,80
      HS 4.2.8.0: 2134 Devices 1252 Events
      Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

      Comment


        #4
        Thanks sparkman, that's good to know in case checkip.homeseer.com:8245 ever stops working

        Comment


          #5
          Originally posted by sparkman View Post
          I've been using this for the past few years due to issues with hs.wanip:

          PHP Code:
           ip hs.GetURL("http://bot.whatismyipaddress.com","/",False,80
          Thanks was easy enough to change the url to http://icanhazip.com/

          Comment


            #6
            Originally posted by pistacheL0 View Post

            Thanks was easy enough to change the url to http://icanhazip.com/
            hmm... I wonder where you got that from!
            Jon

            Comment


              #7
              From the nodered package I was using :P

              Public Sub Main(ByVal Parm As Object)
              dim ip as string
              ip = hs.GetURL("icanhazip.com", "", False, 80)
              hs4.UpdateFeatureValueStringByRef(1186, ip)
              End Sub


              One less dependence on nodered.
              Attached Files

              Comment

              Working...
              X