rtvb
(Robert)
May 1, 2017, 2:45pm
1
I use the HTTP binding to get my external IP address:
Update 2017-05-01: Added JavaScript transformation to test for valid IP.
Most Internet Service Providers (ISP) provide you with a dynamic WAN IP address. This address may change over time. If you rely on this address, for example for accessing a computer inside your home network, you might want to monitor changes to the address. Websites like icanhazip and WhatIsMyIP return your public IP address as plain text.
This solution grabs that address and stores it in an item. A rule monitors changes …
Recently, icanhazip.com throws warnings in my log file (see below). I am not sure if this is a problem, but is there a way to handle cookies with the binding?
16:38:55.882 [WARN ] [he.commons.httpclient.HttpMethodBase] - Cookie rejected: "$Version=0; __cfduid=dd1c837f158f57d5b53a0d88f7d24de251493649535; $Path=/; $Domain=.icanhazip.com". Illegal domain attribute ".icanhazip.com". Domain of origin: "icanhazip.com"
Running latest OH2 unstable.
KevinI
(Kevin)
May 8, 2017, 8:11am
2
Hi,
Getting the same here so would be interested if theres fix or way to stop these warnings if they don’t actually matter?
K