Fixed storing favorites in XML mode.

Automatically detect if PHP script is running on private range (home
network).