time()) { echo "Need to wait $timewait seconds and refresh the page, to prevent abuse somewhat.\n"; exit(); } $f=fopen("simdiagnostic.lastrun","w"); fwrite($f,time()); fclose($f); exec("dig +short ".$simHost,$rHost); $resolvedHost=trim(implode(" ",$rHost)); $checkForTCP=exec($netcatCommand." -z -v -w 4 $simHost $simTCP 2>&1"); $checkForUDP=exec($netcatCommand." -u -z -v -w 4 $simHost $simUDP 2>&1"); if (trim($checkForTCP) == "") { $checkForTCP="No data available."; } if (trim($checkForUDP) == "") { $checkForUDP="No data available or unable to connect."; } } ?>

Check your Simulator!

Enter your Simulator data to check :)

ExternalHostName: (found in /Regions/Regions.ini)
http_listener_port (found in OpenSim.ini)
InternalPort (from /Regions/Regions.ini or other..)


Results
TCP: Your simulator http_listener_port provided in OpenSim.ini
Results: ".$checkForTCP."
"; echo "
"; if (strpos($checkForTCP,"succeed") > 0 ) { echo "Your OpenSim.ini configuration appears good. We are able to connect to your simulator from outside your network.
"; } if (strpos($checkForTCP,"reacha") > 0 ) { echo "It appears that the hostname $simHost ( $resolvedHost ) provided is incorrect or unreachable. Please be sure that in Regions/Regions.ini you are not using your internal IP address shown above.
"; } if (strpos($checkForTCP,"time") > 0 ) { echo "It appears that the request timed-out, which can be caused by one of sereral problems.
  • Your cable modem or router may not have TCP forwarding set up correctly to port $simTCP.
  • Your cable modem or router may be blocking external WAN requests.
  • Your computer's firewall or antivirus software may be blocking that port.
"; } if (strpos($checkForTCP,"refused") > 0 ) { echo "This indicates that your port forwarding and firewall settings are probably good. There is simply nothing listening on that port ( $simTCP ). Are you sure OpenSim.exe is running? Double check http_listener_port in OpenSim.ini is correct.
"; } echo "
"; ?>
ExternalHostName and InternalPort provided in /Regions/Regions.ini
Results: ".$checkForUDP."
"; echo "
"; if (strpos($checkForUDP,"succeed") > 0 ) { echo "Your Regions.ini configuration appears good. We are able to connect to your region's UDP port from outside your network.
"; } if (strpos($checkForUDP,"reacha") > 0 ) { echo "It appears that the hostname $simHost ( $resolvedHost ) provided is incorrect or unreachable. Please be sure that in Regions/Regions.ini you are not using your internal IP address shown above.
"; } if (strpos($checkForUDP,"time") > 0 ) { echo "It appears that the request timed-out, which can be caused by one of sereral problems.
  • Your cable modem or router may not have TCP forwarding set up correctly to port $simTCP.
  • Your cable modem or router may be blocking external WAN requests.
  • Your computer's firewall or antivirus software may be blocking that port.
"; } if (strpos($checkForUDP,"refused") > 0 || strpos($checkForUDP,"data") > 0) { echo "This indicates that your port forwarding and firewall settings are probably good. There is simply nothing listening on that port ( $simUDP ). Are you sure OpenSim.exe is running? Double check ExternalHostName in Regions.ini is correct.
Ensure that the host / address you provided ( $simHost ) is not the same as your local IP address, listed above. "; } echo "
"; ?>

IP address information
  • Your external IP address on the computer you are browsing this web page from: <--- YOU You provided $simHost as your ExternalHostName. "; if ($resolvedHost !="") { echo "This resolves in DNS to $resolvedHost ."; } } ?> <--- YOUR SIMULATOR
  • Your internal IP according to external javascript tool at net.ipcalf.com (no guarantee this is accurate)
    * This is neeeded information for setting up port forwarding on your cable modem or router. It shows IPV4 and IPV6 adresses.




Everything checks out... and I am still having problems. :(
If you need help setting up port forwarding on your router / modem / gateway...

Recommended by Foxx Bode: Windows 10 NAT Loopback link at Wikipedia

Port forwarding google search - Just add your router name and model at the end (eg: Netgear n600... Comcast Gateway... etc..)

If your simulator passes all tests above, others can connect to your region, but you can not. You likely need LOOPBACK set up, so your local computer can connect to intself, or other computers in your local / home network.

Loopback adapter google search - Just add your operating system (eg: Windows 10... Ubuntu 16.04... etc)

Source code for this utility: simdiagnostic.php - Free to use, bend, spindle, mutilate, host anywhere. Please take it off my hands. :)

© 2017 - Hyacinth Landry - HgLuv Grid - http://hgluv.com - It's all about the Luv. :)