If the OR operator (||) works the same in a conditional statement as it does on the command-line, then the part after the || would only be looked at if the part before it fails (or in this case, evaluates to false). In other words, the statement would evaluate to true if either part succeeds. Are you trying to get it to skip the WAN IP check if you have a dynamic IP? Perhaps we would be better-off simply forgetting about the WAN IP check and instead have your home router's DHCP server assign a non-typical "static" IP to your laptop all the time (something like 192.168.192.235 or whatever). Then we just check to see if we have that IP. Considering neither approach is secure, we aren't giving anything up. We actually gain not having to depend on the whatismyip.org server. It's just a thought.
Last edited by win32sux; 10-28-2007 at 10:41 AM.