From a7b45e65593c69e1aecfbc01d31bc3e403a42ac8 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 1 Dec 2011 14:44:52 +1000 Subject: Use 0.0.0.0 as the default internal region IP, but stick with the externally looked up IP for the default external one. --- create_region.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/create_region.sh b/create_region.sh index 33257fd..0cd898d 100755 --- a/create_region.sh +++ b/create_region.sh @@ -30,19 +30,19 @@ then echo "WARNING setting the Location to $LOCATION, this may not be what you want." fi -# Here we make use of an external IP finding service. Careful, it may move. -# We later reuse the same IP for the default URL, coz that should work at least. if [ "x$IP" = "x" ] then # 0.0.0.0 will work for a single sim per physical machine, otherwise we need the real internal IP. - IP=$(wget -q http://automation.whatismyip.com/n09230945.asp -O -) + IP="0.0.0.0" echo "WARNING setting the InternalAddress to $IP, this may not be what you want." - echo " 0.0.0.0 will work for a single sim per physical machine, otherwise we need the real internal IP." +# echo " 0.0.0.0 will work for a single sim per physical machine, otherwise we need the real internal IP." +# According to the OpenSim docs, 0.0.0.0 means to listen on all NICs the machine has, which should work fine. fi +# Here we make use of an external IP finding service. Careful, it may move. if [ "x$URL" = "x" ] then - URL=$IP # URL is best (without the HTTP://), but IP (e.g. 88.109.81.55) works too. + URL=$(wget -q http://automation.whatismyip.com/n09230945.asp -O -) # URL is best (without the HTTP://), but IP (e.g. 88.109.81.55) works too. echo "WARNING setting the ExternalHostName to $URL, this may not be what you want." fi -- cgit v1.1