if (isset($_SERVER['SESSION_SVR'])) {
// Resolve it
$ip = $helperInstance->resolveIpAddress($_SERVER['SESSION_SVR']);
+ } elseif (isset($_SERVER['COMPUTERNAME'])) {
+ // May happen on some XP systems, so also try this
+ $ip = $helperInstance->resolveIpAddress($_SERVER['COMPUTERNAME']);
} else {
// Could not find our hostname
$helperInstance->debugOutput(sprintf("[%s:] WARNING: Cannot resolve my own IP address.",