Getting the networking for opensim to work is the single hardest part of setting up a system, IMO. If you get this solved, everything else will be simpler ever after.<div><br></div><div>Somewhere up there I saw a 10.x.x.x address. I learned through excruciating trial and error that Opensim doesn't play nicely on a network with 1-to-1 NATing, even if you have the right ports open on the firewall, even if you have the right settings in your ini files. It seems opensim resolves the internal IP address of the machine to send the UDP packets no matter what IP address you put in the .ini files. The viewer then receives the UDP packets containing that internal IP address and tries to connect, but from outside the network the internal address never resolves, of course, so you just get stuck at the waiting for region handshake.</div>
<div><br></div><div>The only solution I found on campus where we have 1-to-1 NATing was to put the server in the DMZ and have a static external IP address assigned, then everything worked swimmingly. At home on FleepGrid, I also got a static IP address assigned from my ISP and voila all my problems were solved.</div>
<div><br></div><div>For reference, this is what an entry looks like from my region.ini file:</div><div><br></div><div><div>[FleepGrid Plaza]</div><div>RegionUUID = a6a2136d-daa1-4f4e-a136-fd26c913ecfa</div><div>Location = 9013,9013</div>
<div>InternalAddress = 0.0.0.0</div><div>InternalPort = 9000</div><div>AllowAlternatePorts = False</div><div>ExternalHostName = <a href="http://fleepgrid.com">fleepgrid.com</a></div></div><div><br></div><div>I hope some of that is helpful and 99% of the time when you get stuck at the region handshake part, it's a UDP packets problem, so you may want to speak with your networking admin or network tech support if you're stuck.</div>
<div><br></div><div>Best of luck!</div><div><br></div><div>- Chris/Fleep</div><div><br></div><div>uChris M. Collins (SL/OS: Fleep Tuque)</div><div>Center for Simulations & Virtual Environments Research (UCSIM)</div><div>
UCIT Instructional & Research Computing</div><div>University of Cincinnati</div><div>406A Zimmer Hall</div><div>315 College Drive</div><div>PO BOX 210088</div><div>Cincinnati, OH 45221-0088</div><div><a href="mailto:chris.collins@uc.edu">chris.collins@uc.edu</a></div>
<div>(513) 556-3018</div><div><br></div><div><a href="http://ucsim.uc.edu">http://ucsim.uc.edu</a></div><div><br></div><div><br><br><div class="gmail_quote">On Sun, Jan 22, 2012 at 1:19 PM, Gary Beck <span dir="ltr"><<a href="mailto:gab4gab@gmail.com">gab4gab@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div bgcolor="#ffffff">
<div><font face="Arial">Thanks for that info Nicky. I wish I'd
known that a year ago.</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">Looking in Imprudence.log the first appearance of
the region UDP address:port was in a line with this heading:</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">LLCircuit::addCircuitData for </font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">The log gives a fairly detailed account of what's
going on during a handshake failure.</font></div><span class="HOEnZb"><font color="#888888">
<div><font face="Arial"></font> </div>
<div><font face="Arial">- Gary</font></div>
</font></span><blockquote style="BORDER-LEFT:#000000 2px solid;PADDING-LEFT:5px;PADDING-RIGHT:0px;MARGIN-LEFT:5px;MARGIN-RIGHT:0px"><div class="im">
<div style="FONT:10pt arial">----- Original Message ----- </div>
<div style="FONT:10pt arial;BACKGROUND:#e4e4e4"><b>From:</b>
<a title="nickyperian@yahoo.com" href="mailto:nickyperian@yahoo.com" target="_blank">Nicky
Perian</a> </div>
<div style="FONT:10pt arial"><b>To:</b> <a title="opensim-users@lists.berlios.de" href="mailto:opensim-users@lists.berlios.de" target="_blank">opensim-users@lists.berlios.de</a>
</div>
</div><div><div class="h5"><div style="FONT:10pt arial"><b>Sent:</b> Sunday, January 22, 2012 12:47
PM</div>
<div style="FONT:10pt arial"><b>Subject:</b> Re: [Opensim-users] Phoenix
Viewer hangs at "WaitingforRegionhandshake"</div>
<div><br></div>
<div style="font-size:10pt;font-family:arial,helvetica,sans-serif">
<div><span>If not already done, look at the viewer log. It should have some
uri info at the message output point.<br></span></div>
<div><br></div>
<div style="FONT-FAMILY:arial,helvetica,sans-serif;FONT-SIZE:10pt">
<div style="FONT-FAMILY:times new roman,new york,times,serif;FONT-SIZE:12pt">
<div dir="ltr"><font face="Arial">
<hr size="1">
<b><span style="FONT-WEIGHT:bold">From:</span></b> Gary Beck <<a href="mailto:gab4gab@gmail.com" target="_blank">gab4gab@gmail.com</a>><br><b><span style="FONT-WEIGHT:bold">To:</span></b> <a href="mailto:opensim-users@lists.berlios.de" target="_blank">opensim-users@lists.berlios.de</a>
<br><b><span style="FONT-WEIGHT:bold">Sent:</span></b> Sunday, January 22,
2012 10:27 AM<br><b><span style="FONT-WEIGHT:bold">Subject:</span></b> Re:
[Opensim-users] Phoenix Viewer hangs at "Waiting
forRegionhandshake"<br></font></div><br>Kenneth,<br> If you're logging
on to the region that uses port 9000 that's the port that will be
used.<br> Maybe a step by step on the handshake process will give a clue
-<br><br> Your server passes the IP address of the region
paired with the port number to the viewer.<br> You
specify:<br> ExternalHostName = "<a href="http://ec2-46-51-xxx-xxx.eu-west-1.compute.amazonaws.com" target="_blank">ec2-46-51-xxx-xxx.eu-west-1.compute.amazonaws.com</a>"<br>
Your server resolves that to an address and passed that (not the
URL string) along to the viewer.<br> This could cause a
problem if at the server the ExternalHostName is resolved to something other
than the proper external IP address (such as the local IP address.)<br>
The viewer takes the passes address/port and attempts to
converse with the server using it.<br> Then if too much
time passes the viewer will declare a failure.<br><br>Typically the problem is
either wrong address used or port blocked.<br>Because you're confident the
port is open now I'd look into the address being passed. Unfortunately
the log messages related to the regions either show you 'resolved local
address:port' or 'unresolved URL address:port' which give no clue.
Perhaps someone knows a good tool to track down the actual address passed to
the viewer.<br>- Gary<br>----- Original Message ----- From: "Kenneth" <<a href="mailto:stretchgargan@gmail.com" target="_blank">stretchgargan@gmail.com</a>><br>To:
<<a href="mailto:opensim-users@lists.berlios.de" target="_blank">opensim-users@lists.berlios.de</a>><br>Sent:
Sunday, January 22, 2012 10:47 AM<br>Subject: Re: [Opensim-users] Phoenix
Viewer hangs at "Waiting forRegionhandshake"<br><br><br>> On 08/01/2012
22:38, Gary Beck wrote:<br>>> Kenneth,<br>>> Your
region parameters looks fine. From what you've included it's clear that
you're reaching the TCP port 9000.<br>>> To complete the
handshake process and communicate with the region you also need to open port
9000 for UDP. The handshake is there to verify that UDP communication is
working.<br>>> Hope that helps.<br>>> - Gary<br>>
<br>> I opened UDP 9000 too (at first, I only had TCP 9000 open) on the
Amazon firewall. No joy.<br>> <br>> I've verified connectivity on TCP
and UDP 9000 by using NetCat on both sides.<br>> <br>> Does it use any
other ports?<br>> <br>> K.<br>> <br>> <br>>
_______________________________________________<br>> Opensim-users mailing
list<br>> <a href="mailto:Opensim-users@lists.berlios.de" target="_blank">Opensim-users@lists.berlios.de</a><br>>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a>
<br><br>_______________________________________________<br>Opensim-users
mailing list<br><a href="mailto:Opensim-users@lists.berlios.de" target="_blank">Opensim-users@lists.berlios.de</a><br><a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a><br>
<br><br></div></div></div>
</div></div><p>
</p><hr><div class="im">
<p></p>_______________________________________________<br>Opensim-users
mailing
list<br><a href="mailto:Opensim-users@lists.berlios.de" target="_blank">Opensim-users@lists.berlios.de</a><br><a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a><br>
</div><p></p></blockquote></div>
<br>_______________________________________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@lists.berlios.de">Opensim-users@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a><br>
<br></blockquote></div><br></div>