I want to write a function which checks if my current IP address is the one I have defined as a parameter.
Thus my question is how do I equate a variable to evaluate my current IP address?
WolframAlpha[“current geoIP location”] allows to retrieve the IP address, but I do not know how assign it to and store it as, a variable.
lookup
$MachineAddresses
Thanks. I ended up using
Interpreter[“HexInteger”]@ StringPartition[StringReplace[$MachineAddresses[[9]], “:” → “”],2][[3 ;; 6]]