02. Connecting two Viewers to your Region

Now that you have your standalone sim up and running, and after the initial euphoria has worn off, you may have noticed how lonesome it is in there. But before you invite someone to join you in your sim (which is a little involved, but hopefully explained clearly in the next tutorial), you might want to check that you can connect two viewers to your sim locally, both from one computer, and then from two computers (if you are using a home router). This is how to do it:

Step 1: Set the External Host Name
In your Bin/Regions folder you will find the default.xml file, right-click it and select Open With, and choose Notepad. The value you are looking for is external_host_name="127.0.0.1". The value in the quotes is the IP address of the computer running the OpenSim server software. An IP address of 127.0.0.1 is a special reserved address, and basically means THIS computer. We now need to be a bit more specific and refer to the server computer by its actual IP address. To find this out, go to Start, Run, and type 'cmd' (without the quotes) in the Open: box. A DOS window will open. Now, type the command IPCONFIG/ALL and hit Enter. This will reveal your machine's IP address. Make a careful note of this. A typical IP for a PC on a home LAN will have an address similar to 198.168.0.2 (the router normally has a LAN-side IP address of 198.162.0.1). But, whatever the IP address has been reported, enter it within the quotes following the entry external_host_name=, so it looks something like this: external_host_name="198.162.0.2"

Step 2: Have two Viewers Installed
I hope you have a copy of the Second Life viewer and the Hippo viewer as I recommended in Tutorial 1 of the series (the link is there too).

Step 3: Create a Second User
Start the OpenSim server software, and when it has completed its startup and is ready you can then add another user. To do this, type the following command at the bottom of the server (DOS-like) window:

create user John Doe test 1000 1000

This command will create a new user, called John Doe (but this name can be anything you like), the password is 'test', but again, choose whatever you like. The X and Y coordinates should be the default 1000 1000, as you did when setting up the first user.

Step 4: Login Both Users
Start your first viewer, and use the login details of your first user, and Connect. You should be in. Start your second viewer, and use the login details of your second user. With any luck and a fair wind, you should now have two avatars in your region (but both occupying the same space, so move one of them).

Step 5: Login Both Users from two PCs
If you are using a home router, and have more than one PC on your home LAN, then you can try logging in two users from two different PCs. Simply install a viewer on the second PC If you are using the Hippo viewer, Add a new grid as explained in Tutorial 1, and change the loginuri to the same IP address as the external_host_name entry above, and of course follow it with the :9000 port number, so it looks something like this http://192.168.0.2:9000/.

If you are using the SL viewer change the target in the shortcut icon to look something like this:

"C:\Program Files\SecondLife\SecondLife.exe" -loginuri http://192.168.0.2:9000/

Now login with the two viewers on the two PCs, using the two user accounts created. I would wait until one of the users is successfully logged in before attempting to log in with the other user on the other PC.

In the next in the series, I will explain how to log in to your standalone sim remotely.

12 comments:

  1. thanks for your tut,
    this is the way how we can use two viewer or user in the Os,but how i can import files with a tool,do i have to creat user name for a bot ?

    OS, VEV !

    ReplyDelete
  2. Very helpful info, I have been going through the tutorials in order. On to the next and hopefully soon will be on the OSGrid.

    ReplyDelete
  3. Thanx for your Tutorials
    I am setting up osgrid.opensim.v0.6.8849.
    Although I have connected a standalone Succesfuly, during Tutorial 1. I can not find the default.xml file in the bin/regions folder to edit for Tutorial 2.
    please redirect me

    ReplyDelete
  4. default.xml no longer exists in the newer versions of opensim. You need to change the regions.ini file in bin/regions
    The setup looks similar, so just place your internal IP (192.168.x.x) where the default 127.0.0.1 is.
    I think you also have to change SYSTEMIP to this internal address as well.

    ReplyDelete
  5. i did this and i had to completely reinstall my grid cause now even my god account wont start.

    ReplyDelete
  6. UPDATE: you have to replace the internal ip with your ip

    ReplyDelete
  7. Im confused none of this is working for me. Is there anyway this could be updated and maybe a video of how to set it up also.

    ReplyDelete
  8. And indeed, I’m just always astounded concerning the remarkable things served by you. Some 4 facts on this page are undeniably the most effective I’ve had.

    --------------
    Business management software

    ReplyDelete
  9. A commitment of thankfulness is all together for the comment. It's so attempting to update the perspective of men and ladies, who feel they ought to starve in isolation and demolition their bodies to the floor to see positive circumstances.
    Belastingen amsterdam

    ReplyDelete
  10. Decent replies consequently of this inquiry with genuine contentions and clarifying about that.
    Best websites

    ReplyDelete
  11. At this time it seems like WordPress is the preferred blogging platform available right now. (from what I’ve read) Is that what you’re using on your blog? Great post however I was wondering if you could write a litte more on this subject.

    -------------------------
    Startup government

    ReplyDelete
  12. Hey! This website is great, just like this post! Do keep it up. If you need to register a business, let us, the best business incorporation provider help!

    ReplyDelete