From a Private Standalone to a Hypergrid Home: Relays, a Landing Point and Regions You Can Switch Off
Updated 2 November 2026. The first version of this article recommended a console command for switching regions off that turned out to delete every object in the region. Part 3 has been rewritten with the safe method, and what happened is explained below.
For a long time my OpenSimulator grid lived quietly on my home PC as a standalone: one program, one database, a cluster of large regions, and only me in it. It worked, but nobody else could visit, and every region I added ate a little more of the PC’s memory. Over a few evenings I changed that. The grid is now reachable from the Hypergrid without opening my home router, visitors arrive at a proper landing point, and I can switch whole regions on and off from inside the world to save memory.
This article walks through how it was done, including the mistakes, because most of the time went on those.
Part 1: Reaching the Hypergrid without opening the home router
The usual way to put a home grid on the Hypergrid is to forward ports on your router and point a domain name at your home address. I didn’t want that. It exposes the home connection, depends on the router and the internet provider, and breaks whenever the home address changes.
Instead I used a relay. I already rent a server with OVH with a fixed public address, so the plan was:
- An encrypted tunnel runs from the home PC to the VPS. The PC makes the connection outwards, so nothing on the home router needs opening.
- A free dynamic DNS name points at the VPS, not at my home.
- The VPS forwards the grid’s ports through the tunnel to the PC: one TCP port for the grid’s web services, and one UDP port per region.
- To the outside world, the grid appears to live at the VPS’s address. The PC’s own address is never published.
The OpenSim side
The grid was switched from Standalone to StandaloneHypergrid mode, and every address setting was pointed at the relay’s name rather than the PC:
[Startup]
BaseHostname = your-grid.example.org
[Network]
http_listener_port = 9000 ; the one TCP port the relay forwards
; each region file
ExternalHostName = your-grid.example.org
InternalPort = 9001 ; one UDP port per region, all forwarded
On the VPS, two forwarding rules (DNAT in iptables) send the TCP port and the whole range of region UDP ports through the tunnel, plus matching firewall “route” rules so the traffic is allowed through. Keeping the region ports as one continuous range means adding a region later is a one-number change.
The problems we hit
- The tunnel was throttled. A plain WireGuard tunnel worked, but latency jumped to over 300 ms. My provider was slowing down traffic it recognised as a VPN. Switching to AmneziaWG, a WireGuard variant that disguises its packets, brought it down to about 60 ms.
- The grid kept calling itself the long way round. Because the grid’s own name points at the VPS, the PC was sending its own traffic out to the server and back. A one-line hosts file entry on the PC points the grid’s name at the PC itself, and on the VPS a hosts entry points it at the tunnel address. Logins became instant.
- Large uploads stalled. The tunnel adds overhead, so full-size packets no longer fitted. Lowering the PC’s network packet size (MTU) and adding an MSS “clamp” rule on the VPS fixed it.
- “Unable to verify identity” for visitors. Hypergrid travel checks that a visitor’s address matches what the home grid expects, and a relay changes addresses on the way. Relaxing that check (
BypassClientVerification) solved it. Only do this if you understand the trade-off.
Part 2: A landing point for visitors
Visitors from other grids shouldn’t drop into the middle of my builds or a private area. So I made one region whose only job is welcoming people, placed well away from the others on the map:
[GridService]
Region_YourArrivalRegion = "DefaultHGRegion"
[GatekeeperService]
AllowTeleportsToAnyRegion = false
With these two settings, every Hypergrid visitor lands in the arrival region first, whatever address they typed. From there they can explore. To make it feel like an arrival point, I loaded an old oar file build into it from an OAR backup I’d kept for years, and set a parcel landing point at the terminal entrance. Later I enlarged the region from 256 m to 512 m square by changing SizeX and SizeY in its region file. The existing build simply stays in one corner, and the new land around it is free for expansion. Save an OAR of the region before you try this.
Groups, so visitors can look but not build
I wanted each region’s land set to a group, so visitors can walk around but not rez or build. Groups are switched off in a fresh OpenSim install, and getting them going taught me two things:
- The Hypergrid version of the groups connector crashed the grid at startup, because it needs an offline-messaging service a simple standalone doesn’t run. The local version works perfectly when only your own avatars need groups.
- Group chat in Groups V2 also needs
MessageOnlineUsersOnly = true. The log says so plainly, once you look.
[Groups]
Enabled = true
Module = "Groups Module V2"
StorageProvider = OpenSim.Data.MySQL.dll
ServicesConnectorModule = "Groups Local Service Connector"
LocalService = local
MessagingEnabled = true
MessagingModule = "Groups Messaging Module V2"
MessageOnlineUsersOnly = true
Part 3: Switching regions on and off to save memory
Large, detailed regions are hungry: each one can take one to two gigabytes of memory. With every region running, the PC sat at well over 70% memory use. But I rarely need all of them at once. So the grid now runs a handful of core regions that are always on, plus one work region at a time that I switch on when I need it.
A warning first: remove-region deletes everything
The first version of this setup switched regions off with the console command remove-region. It looks harmless: the region disappears from the map and its settings file is left alone. But in OpenSim’s source code, both remove-region and delete-region call DeleteAllSceneObjects() before they unload the region. That removes every object in the region from the database. The only difference between the two commands is that delete-region also deletes the region’s settings file.
I found out the hard way. After a day of switching, ten regions came back as bare terrain. To make it worse, my panel was programmed to put regions back “the way they were left” after a restart, so it switched them off by itself, wiping the content I had just reloaded. Everything was recovered from OAR backups, but it took most of a night. Never use either command to switch a region off temporarily.
The safe way to switch a region off
OpenSim does have a way to close a region without deleting anything, but it isn’t a console command. It’s in the RemoteAdmin module: admin_close_region. It saves the region’s changes and closes it exactly as a normal shutdown does. Switching it back on uses the console command create region, which loads the region from the database with everything in place. I tested this on a small region before trusting it: the object count in the log was the same before and after.
RemoteAdmin listens on the grid’s main web port, and with a relay that port is open to the internet. So lock it down hard: only requests from the PC itself, only the one command, and a long random password.
[RemoteAdmin]
enabled = true
access_password = "a-long-random-password"
access_ip_addresses = 127.0.0.1
enabled_methods = admin_close_region
[Network]
; let in-world scripts call RemoteAdmin on this PC, and nothing else on the local network
OutboundDisallowForUserScriptsExcept = 127.0.0.1:9000
Parking regions so they don’t load at startup
OpenSim loads every region file it finds in its Regions folder at startup. Only the core regions’ files stay active there. Each optional region’s working settings file lives in a separate folder outside Regions, and the copy inside Regions has every line commented out, so it loads nothing. After any restart only the core regions come up, and the region I’m working on is switched back on from the panel. The parked regions’ builds stay safely in the database.
One lesson with create region: give it the full path to the parked file. With a relative path OpenSim didn’t find it, assumed I wanted a brand-new region, and sat in its console window asking questions, quietly blocking every other command. If your OpenSim console ever looks frozen, check whether its last line is a question before you type anything.
Buttons in the world
Typing commands isn’t much fun, so there’s a panel in my in-world office: a title bar and one button per switchable region, all in one linked object with a single script in the root.
- The script builds the panel itself: it names, sizes and arranges the buttons, and draws each region’s name on its button with
osSetDynamicTextureData, shrinking the text until it fits. No textures are needed. - Once a minute it asks the grid which regions are up (
llRequestSimulatorDatawithDATA_SIM_STATUS) and tints each button green for on, red for off, or amber while switching. This check only ever reads. - A click asks for confirmation. The script then checks the region’s state once more and either sends
admin_close_regionto RemoteAdmin withllHTTPRequest, or sendscreate regionthroughosConsoleCommand. - Nothing happens automatically. No timers that switch, no restoring after restarts. A region only changes when I click and confirm.
- It only responds to its owner, handles one switch at a time, allows only one optional region on at once, and refuses to switch off the region you’re standing in.
osConsoleCommand can run any console command, so it must be locked down. I allowed it for my own avatar’s ID only, in the OSSL settings:
Allow_osConsoleCommand = your-avatar-uuid-here
Here is the heart of the switching code:
switchOff() // saves and closes; never deletes
{
string body = "<?xml version=\"1.0\"?><methodCall>"
+ "<methodName>admin_close_region</methodName><params><param><value><struct>"
+ "<member><name>password</name><value><string>" + RADMIN_PW + "</string></value></member>"
+ "<member><name>region_id</name><value><string>" + regionUuid + "</string></value></member>"
+ "</struct></value></param></params></methodCall>";
llHTTPRequest("http://127.0.0.1:9000/",
[HTTP_METHOD, "POST", HTTP_MIMETYPE, "text/xml"], body);
}
switchOn() // loads the region back from the database
{
osConsoleCommand("create region \"" + regionName + "\" " + PARKED_FOLDER + regionFile);
}
The same panel as a HUD
A copy of the panel can be worn as a HUD. When the script sees it’s attached to a HUD point, it lays the buttons out as one slim row across the top of the screen. Because every copy checks the real state of the regions, the office panel and the HUD never disagree.
One extra safety check matters for a HUD: it travels with you to other grids, and there the address 127.0.0.1 means their server. Sending a request there would hand your RemoteAdmin password to someone else’s grid. So the script checks the grid’s name with osGetGridName() and osGetGridNick() before doing anything. Anywhere else, every button turns grey and nothing is sent.
The result
The PC now runs only the core regions plus the one I’m working on, instead of everything at once, so there’s plenty of memory to spare and room to add more regions. Switching a region on takes a minute or two, switching it off a few seconds, and nothing is ever deleted along the way.
What I’d tell anyone trying this
- Read the log, not the screen. Nearly every problem was explained in plain words in
OpenSim.log. The fastest fixes came from reading the actual error instead of guessing. - Test anything that unloads or deletes on a throwaway region first. Note its object count in the log, run the command, bring the region back and compare. Ten minutes of testing would have saved me a night of restoring.
- Never let a script switch regions by itself. Automatic “restore the last state” logic multiplied my mistake instead of containing it.
- Keep OAR backups of every region. They turned a disaster into an inconvenience.
- After loading OARs, run
backupin the console before you shut down. A freshly loaded region isn’t fully written to the database straight away. With many large regions the save can hold the console for twenty minutes or more, so be patient. - Be careful with startup command files. A
startup_console_commands_filecan load OARs automatically on the next restart, which avoids typing long paths. But it runs on every start until you empty it. If achange regionline fails, the nextload oargoes into whichever region was selected before, and withrootselected it goes into every region. Check the log after each load. - Back up a settings file before every change. A quick copy with a descriptive name made every mistake easy to undo.
- Don’t click inside the Windows console window. Its “QuickEdit” mode pauses OpenSim the moment you select text, and logins then hang until you press Esc.
- Lock down powerful features. Allow
osConsoleCommandfor your own avatar only, and limit RemoteAdmin to the local PC and the single method you need.
A home PC makes a surprisingly capable grid server. With a small relay in front of it and a bit of careful scripting, it can welcome visitors from across the Hypergrid while only running the parts of the world you actually need.
Part 1: Reaching the Hypergrid without opening the home router
The usual way to put a home grid on the Hypergrid is to forward ports on your router and point a domain name at your home address. I didn’t want that. It exposes the home connection, depends on the router and the internet provider, and breaks whenever the home address changes.
Instead I used a relay. I already rent a server with a fixed public address, so the plan was:
-
- An encrypted tunnel runs from the home PC to the VPS. The PC makes the connection outwards, so nothing on the home router needs opening.
-
- A free dynamic DNS name points at the VPS, not at my home.
-
- The VPS forwards the grid’s ports through the tunnel to the PC: one TCP port for the grid’s web services, and one UDP port per region.
-
- To the outside world, the grid appears to live at the VPS’s address. The PC’s own address is never published.
The OpenSim side
The grid was switched from Standalone to StandaloneHypergrid mode, and every address setting was pointed at the relay’s name rather than the PC:
[Startup]
BaseHostname = your-grid.example.org
[Network]
http_listener_port = 9000 ; the one TCP port the relay forwards
; each region file
ExternalHostName = your-grid.example.org
InternalPort = 9001 ; one UDP port per region, all forwarded
On the VPS, two forwarding rules (DNAT in iptables) send the TCP port and the whole range of region UDP ports through the tunnel, plus matching firewall “route” rules so the traffic is allowed through. Keeping the region ports as one continuous range means adding a region later is a one-number change.
The problems we hit
-
- The tunnel was throttled. A plain WireGuard tunnel worked, but latency jumped to over 300 ms. My provider was slowing down traffic it recognised as a VPN. Switching to AmneziaWG, a WireGuard variant that disguises its packets, brought it down to about 60 ms.
-
- The grid kept calling itself the long way round. Because the grid’s own name points at the VPS, the PC was sending its own traffic out to the server and back. A one-line hosts file entry on the PC points the grid’s name at the PC itself, and on the VPS a hosts entry points it at the tunnel address. Logins became instant.
-
- Large uploads stalled. The tunnel adds overhead, so full-size packets no longer fitted. Lowering the PC’s network packet size (MTU) and adding an MSS “clamp” rule on the VPS fixed it.
-
- “Unable to verify identity” for visitors. Hypergrid travel checks that a visitor’s address matches what the home grid expects, and a relay changes addresses on the way. Relaxing that check (
BypassClientVerification) solved it. Only do this if you understand the trade-off.
- “Unable to verify identity” for visitors. Hypergrid travel checks that a visitor’s address matches what the home grid expects, and a relay changes addresses on the way. Relaxing that check (
Part 2: A landing point for visitors
Visitors from other grids shouldn’t drop into the middle of my builds or a private area. So I made one small region whose only job is welcoming people:
[GridService]
Region_YourArrivalRegion = "DefaultHGRegion"
[GatekeeperService]
AllowTeleportsToAnyRegion = false
With these two settings, every Hypergrid visitor lands in the arrival region first, whatever address they typed. From there they can explore. To make it feel like an arrival point, I loaded an old oar file build into it from an OAR backup I’d kept for years, and set a parcel landing point at the terminal entrance.
Groups, so visitors can look but not build
I wanted each region’s land set to a group, so visitors can walk around but not rez or build. Groups are switched off in a fresh OpenSim install, and getting them going taught me two things:
-
- The Hypergrid version of the groups connector crashed the grid at startup, because it needs an offline-messaging service a simple standalone doesn’t run. The local version works perfectly when only your own avatars need groups.
-
- Group chat in Groups V2 also needs
MessageOnlineUsersOnly = true. The log says so plainly, once you look.
- Group chat in Groups V2 also needs
[Groups]
Enabled = true
Module = "Groups Module V2"
StorageProvider = OpenSim.Data.MySQL.dll
ServicesConnectorModule = "Groups Local Service Connector"
LocalService = local
MessagingEnabled = true
MessagingModule = "Groups Messaging Module V2"
MessageOnlineUsersOnly = true
Part 3: Switching regions on and off to save memory
This was the part I was most pleased with. Large, detailed regions are hungry: each one can take one to two gigabytes of memory. With every region running, the PC sat at over 80% memory use and everything felt sluggish. But I rarely need all of them at once.
Parking regions
OpenSim loads every region file it finds in its Regions folder at startup. To “park” a region, I keep a copy of its settings file in a separate folder outside Regions, and comment out every line of the original so it loads nothing. The region’s builds stay safely in the database and come back exactly as they were.
Two console commands do the actual switching while the grid is running:
remove-region Region Name
create region "Region Name" /full/path/to/parked/RegionName.ini
One lesson here: my first attempt gave create region a relative path. OpenSim didn’t find the file, assumed I wanted a brand-new region, and sat in its console window asking questions, quietly blocking every other command. A full path fixed it. If your OpenSim console ever looks frozen, check whether its last line is a question before you type anything.
Buttons in the world
Typing console commands isn’t much fun, so I built a panel in my in-world office: one flat prim per switchable region. Each button runs the same small script:
-
- The prim’s name is the region name, and the script draws that name on the button in black using
osSetDynamicTextureData, so no textures are needed.
- The prim’s name is the region name, and the script draws that name on the button in black using
-
- Every 20 seconds it asks the grid whether its region is up (
llRequestSimulatorDatawithDATA_SIM_STATUS), and tints itself green for on, red for off, or amber while switching.
- Every 20 seconds it asks the grid whether its region is up (
-
- A click sends
remove-regionorcreate regionthroughosConsoleCommand.
- A click sends
-
- It refuses to switch off the region you’re standing in, and only responds to its owner.
-
- After the whole grid restarts, the office panel waits a few minutes and then puts each region back the way it was left, one at a time so the PC isn’t swamped.
osConsoleCommand can run any console command, so it must be locked down. I allowed it for my own avatar’s ID only, in the OSSL settings:
Allow_osConsoleCommand = your-avatar-uuid-here
Here is the heart of the button script:
switchOn()
{
osConsoleCommand("create region \"" + region + "\" " + PARKED + fileFor(region));
}
switchOff()
{
osConsoleCommand("remove-region " + region);
}
touch_start(integer n)
{
if (llDetectedKey(0) != llGetOwner()) return;
if (isOn) switchOff(); else switchOn();
}
The same buttons as a HUD
Because every button checks the real state of its region, there can be more than one copy without them disagreeing. I took a copy of the office panel and wore it as a HUD. A second little script in the HUD’s root prim rearranges the buttons into a single slim line across the top of the screen. On other grids the HUD simply turns grey and does nothing.
The result
Before this, the PC ran at about 82% memory with every region loaded. Now it typically sits between 65% and 70% with more regions available than before, because the ones I’m not using are parked. When I want to work on a particular region, I switch everything else off from the HUD and have the PC almost to myself.
What I’d tell anyone trying this
-
- Read the log, not the screen. Nearly every problem was explained in plain words in
OpenSim.log. The fastest fixes came from reading the actual error instead of guessing.
- Read the log, not the screen. Nearly every problem was explained in plain words in
-
- Back up a settings file before every change. A quick copy with a descriptive name made every mistake easy to undo.
-
- Load big OAR files one or two at a time. A startup command file (
startup_console_commands_file) can load them automatically on the next restart, which avoids typing long paths into the console.
- Load big OAR files one or two at a time. A startup command file (
-
- Don’t click inside the Windows console window. Its “QuickEdit” mode pauses OpenSim the moment you select text, and logins then hang until you press Esc.
-
- Lock down powerful OSSL functions to your own avatar’s ID, never to everyone.
A home PC makes a surprisingly capable grid server. With a small relay in front of it and a bit of scripting, it can welcome visitors from across the Hypergrid while only running the parts of the world you actually need.













