[Opensim-users] HG - Not able to teleport back home

Thomas Ringate tringate at gmail.com
Wed Oct 21 21:59:30 UTC 2015


opensim requires the loopback function to work for it to operate correctly.

Loopback can be implemented in a few ways as has already been suggested.

If your server and viewer are on the same computer, using the windows loopback adapter will solve the problem for you.

If you are running several servers on an internal network, or you are trying to connect to a server on an internal network from a client, ”your viewer” which is on a different machine on the same internal network then the router must support loopback.

Most new home routers do not support loopback, and even those that claim to support it usually do not correctly support it.  This can be seen using a sniffer you can see that addresses in the individual packets often get the address of the router, rather than the actual address of the sending computer.  Fortunately this problem usually results in a timeout and opensim usually will do a retry and these “broken servers” for whatever reason often get it right more than they get it wrong.

If you do not have a router that correctly supports loopback, and you are not running everything on the same computer your only hope is to use a VPN to get outside of your local network so the remote router can do the loopback functions for you.

In my case I have Verizon FioS which uses the Actiontec modem which does not support loopback according to the manufacturer and using a sniffer I can say they are correct.  It does not.  However Verizon has implemented something in their head end some how that “tries” to implement it.  It works right about 40% of the time.

I found after hours and hours of discussion with Verizon technical support that their commercial costumers solve this problem by simply placing a router that does support loopback directly on their ONT and then connecting the Actiontec router to that router.  That is exactly what I have done using an old Linksys router and everything is now working fine.

The correct term of the feature we are talking about is “NAT loopback”.  NAT loopback, also known as NAT hairpinning or NAT reflection, is a feature in many consumer routers which permits the access of a service via the public IP address from inside the local network.

I believe your issue is the perfect example of why opensim requires loopback to work.  The address of your local world is known by it’s NAT address, outside of your local network which is an un-routable address.

By messing with your host file you can fake things for yourself inside your local network, but the IP address opensim is sending is either your external IP address or the local IP address.  It can not determine when to send one or the other so it sends what you tell it by a specific IP address or the domain name.

With a router that supports NAT loopback, you use the domain name and both internal and external users work just fine.  If the router does not support it, and you are only running one opensim server on your local network, if you use your NAT address, only local users will work fine.  If you use you external IP address only external users will work fine.  If you run multiple opensim servers your router must support loopback if you expect remote users to be able to move between your regions on the different local servers without problems.


From: Han Held 
Sent: Wednesday, October 21, 2015 2:26 PM
To: opensim-users at opensimulator.org 
Subject: Re: [Opensim-users] HG - Not able to teleport back home

192.168.2.xxx is an internal network number; that works fine until you have to connect to the outside internet, once you do that opensim gets confused.

I have a no-ip address which I set up to my actual home LAN number, which I get from whatismyip.com


On 10/21/2015 07:54 AM, Isis Ophelia wrote:

  Thank you Garmin. I have configured my internet connection to be a static internal IP which is 192.168.2.10. Following your suggestion I replaced the 0.0.0.0 with that IP.

  Result is: The console shows:
  17:48:30 - [SCENE]: Region Arcana Welcome authenticated and authorized incoming
  root agent Isis Ophelia 1b77be9b-248e-400b-a4ca-499d0aa06d77 (circuit code 40308
  2697)


  And the viewer tells me: We are having problems connecting. There might be a problem with your internet connection or the Arcana World Grid.

  So pity this does not help :(

  Thank so much though :)


  On Wed, Oct 21, 2015 at 4:24 PM, GarminKawaguichi <garmin.kawaguichi at magalaxie.com> wrote:

    Maybe try that:
    in your RegionConfig.ini

    InternalAddress = something like 192.168.0.??? (local lan address different for different computers on a same lan)

    MML 



    Le 21/10/2015 15:37, Isis Ophelia a écrit :

      Stand October 21, 2015


      1) router is configured to forward TCP and UDP Ports 9000-9006

      2) windows firewall Inbound Rule TPC ports 9000-9006 and UDP Ports 9000-9006 for diva-r25950 -> Opensim.exe

      3) Dyndns noip installed software that will update my external IP each time it changes

      4) Hosts file: 127.0.0.1    arcanavirtual.noip.me

      This add-on in the host file is recommended from Diva Canto in the Instructions file, when diva opensim and viewer are installed in the same PC. When I remove the line from the Hosts file, I am not able to connect to my Standalone with any viewer installed in my PC.


      Attached MyWorld.ini and RegionConfig.ini


      In the RegionConfig.ini the line: ExternalHostName = "SYSTEMIP" replacing SYSTEMIP with my external domain does not make any difference.


      With these configurations, I can connect to my Standalone. I can work in my 6 regions. I can hyperteleport to any HG enable grid. And a test showed that others can reach my Standalone and go back to their home grid.


      I am still not able to go back home. The message I get in the Console says something like: unexpectedly still child avatar.


      So for now, I just log off in the hypergrid I am visiting, and log on in my Standalone again.


      Many thanks :)


      On Wed, Oct 21, 2015 at 2:50 PM, Unadecal Arado <unadecal.arado at gmail.com> wrote:

        Hi Isis, please see comments to your original post: 

        Of the top of my head, you need to forward the simulator ports on the router and Windows Firewall (I completely disable Windows Firewall on all my computers).

        Adding your domain name as a loopback alias in the hosts file is a sign that your router is unable to handle loopback calls, i.e. is unable to resolve your domain name to your external IPand allow traffic to travel back into and through itself. There are other software solutions to this, such as using a vpn while you are logged into the viewer. Fiddling with the hosts file is not recommended.

        I haven't seen your regionsconfig.ini, but make sure that the address entry contains your domain name andnot your ip address (internal or external)

        These are the things I can think of off the top of my head, I hope it helps :)



        On 9 July 2015 at 13:27, Isis Ophelia <isisophelia at gmail.com> wrote:

          Anyone running diva as standalone HG enabled in own PC? I hope you have a solution for my problem.


          System: Windows 8.1
          Diva (OpenSim 0.8.1 post-fixes) Added 5/26/201

          Mowes: for mysql + php + apache

          Windows Firewall: Inbound rules to open ports TCP + UDP 9100-9106

        ===> Also needs to forward 9250-9255 
          Router: forwarding ports TCP + UDP 9100-9106
        ===> Also needs to forward 9250-9255 

          DynDNS: noip with installed updater software in this pc


          Diva installation and viewer in the same LAN PC

          hosts: added in the hosts file this line: 127.0.0.1    arcanavirtual.noip.me
        ===> Adding a loopback to localhost (127.0.0.1) as the domain name can be problematic.



          Name of the Standalone: Arcana Magic
          With login url: http://arcanavirtual.noip.me:9100/


          Set Home Position in the default region.


          I can log to my standalone. 

          I can teleport to different other HG grids (have tested Metropolis, OsGrid, Digiworldz)

          But I never arrive when teleporting back home.


          Console shows these messages:
          11:10:23 - [GATEKEEPER SERVICE]: Login request for Isis.Ophelia @arcanavirtual.n
          oip.me @ http://arcanavirtual.noip.me:9100/ (1b77be9b-248e-400b-a4ca-499d0aa06d7
          7) at b773f2f0-0755-4542-9772-cad2b9add4b3 using viewer Avination 0.5.0.6219, ch
          annel Avination, IP 192.168.2.10, Mac 469947894f9e298a7726b4a58ff7bf9f, Id0 f33e
          5e6cd69709d805b47dabf4089ab2, Teleport Flags: ViaHome. From region Nile Goddess
          (2f7ad640-21a9-0e0e-fb41-db1ed7fe9517) @ http://login.digiworldz.com:8002/
          11:10:23 - [SCENE]: Region Arcana Magic authenticated and authorized incoming ch
          ild agent Isis Ophelia 1b77be9b-248e-400b-a4ca-499d0aa06d77 (circuit code 280539
          970)
          11:10:44 - [SCENE]: Found presence Isis Ophelia 1b77be9b-248e-400b-a4ca-499d0aa0
          6d77 unexpectedly still child in Arcana Magic
          11:10:44 - [LOGHTTP]: Slow handling of 86 PUT /agent/1b77be9b-248e-400b-a4ca-499
          d0aa06d77/   from 38.130.222.165:57688 took 20094ms
          11:11:06 - [SCENE]: Found presence Isis Ophelia 1b77be9b-248e-400b-a4ca-499d0aa0
          6d77 unexpectedly still child in Arcana Magic
          11:11:06 - [LOGHTTP]: Slow handling of 87 PUT /agent/1b77be9b-248e-400b-a4ca-499
          d0aa06d77/   from 38.130.222.165:57698 took 20062ms

          ========================

          Before I had configured MyWorld.ini and RegionConfig.ini with

          http_listener_port = 9250 and 6 regions with Ports 9250-9255

        ====> Which  address do you use in RegionConfig.ini? do you use your IP address or your domain name? It must be the domain name as in arcanavirtual.noip.me

          I noticed that when I hyper-teleported to another grid, over my head will show:

          Isis.Ophelia at arcanavirtual.noip.me:9000  <----- not 9250

          and at the next start of Diva the port changed again to:

          Isis.Ophelia at arcanavirtual.noip.me:9100  <-----  not 9250


        ====> Isis.Ophelia at arcanavirtual.noip.me:9100 is correct, since that's your grid address, not your sim address 
          So I changed MyWorld.ini and RegionConfig.ini to have now the listener Port to be 9100 and Regions Ports are 9100-9105


          Since 2 weeks troubleshooting this installation with no sucess.


          Thanks for reading. 


          Isis Ophelia


          _______________________________________________
          Opensim-users mailing list
          Opensim-users at opensimulator.org
          http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users




        _______________________________________________
        Opensim-users mailing list
        Opensim-users at opensimulator.org
        http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users




       

_______________________________________________
Opensim-users mailing list
Opensim-users at opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users

    _______________________________________________
    Opensim-users mailing list
    Opensim-users at opensimulator.org
    http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users




   

_______________________________________________
Opensim-users mailing list
Opensim-users at opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users




--------------------------------------------------------------------------------
_______________________________________________
Opensim-users mailing list
Opensim-users at opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20151021/605efc73/attachment-0001.html>


More information about the Opensim-users mailing list