Connect to a different grid

From libopenmetaverse - libomv - Developer Wiki

Jump to: navigation, search

Connecting to an alternate grid other than the default Second Life LIVE Grid

In your application after you've instantiated the SecondLife client object:

 
GridClient Client = new GridClient ();
 

You can set various settings, one of them is LOGIN_SERVER. This setting takes a URL to the login path of the grid. It is set by default to "https://login.agni.lindenlab.com/cgi-bin/login.cgi" which points to the AGNI login server. Setting this to the alternative grid login URL before you attempt to Login will connect your client to that grid.

An Example to connect to ADITI (Linden beta grid)

 
Client.Settings.LOGIN_SERVER = "https://login.aditi.lindenlab.com/cgi-bin/login.cgi";
 

The url for other grids or even a locally hosted OpenSim simulator varies, please read the documentation provided by the grid provider to find the login URL.