Can You Host Foundry on Ubuntu Server? Complete Setup & Performance Guide 2026

Host Foundry on Ubuntu Server

If you’re wondering, “Can I host Foundry on Ubuntu server?” then the simple answer is, “Yes, absolutely!” In fact, Ubuntu Server is one of the best platforms for hosting and running the Foundry Virtual Tabletop. This is because, as a self-hosted virtual tabletop, the application has been known to run exceptionally well on a Linux-based operating system, which offers the benefits of stability, efficient resource usage, and long-term support. Ubuntu Server is one of the most trusted platforms for hosting and development, owing to its robust security features, minimal background processes, and high performance under load.

Whether you are running a personal tabletop RPG gaming session for your friends or are a professional hosting multiple campaigns, Ubuntu is a stable, lightweight, and flexible platform for running your Foundry VTT server. The lightweight nature of Ubuntu means that fewer services are running in the background, thus leaving more CPU power and RAM to focus on your gaming sessions directly. This means that your world loads much faster, animations are smooth, and your players will appreciate the responsiveness of your game server. Ubuntu is also a powerful platform for configuring essential services such as firewalls, SSL certificates, reverse proxy servers, backups, and monitoring tools, all of which are essential for a professional gaming server.

In this detailed guide, we’ll explain:

Why Ubuntu Server is ideal for Foundry
System requirements
Step-by-step installation process
Performance optimization tips
Security best practices
VPS vs Dedicated server considerations
Common issues and solutions

By the end of this guide, you’ll have a complete understanding of how to deploy, optimize, and maintain a high-performance Foundry server on Ubuntu for a smooth and uninterrupted gaming experience.

Table of Contents

What Is Foundry?

Foundry Virtual Tabletop, or Foundry VTT, is a highly capable self-hosted virtual tabletop software application for online role-playing games, including Dungeons & Dragons, Pathfinder, and many other popular RPGs.

While other online tabletop solutions require a subscription and charge a monthly fee, Foundry VTT uses a license model, so once you buy it, it is yours to use forever, and you can self-host it on your own server.

There are no updates to worry about, no restrictions on the platform, and no features to pay extra for to access premium features.

One of Foundry’s biggest strengths is its flexibility. It supports:

  • Custom game systems
  • Hundreds of community-created modules and add-ons
  • Animated maps and dynamic lighting
  • Advanced automation for combat and dice rolls
  • Custom character sheets and macros

Why Host Foundry on Ubuntu Server?

Hosting Foundry Virtual Tabletop on Ubuntu Server is, without a doubt, one of the smartest decisions a user can make if he or she wants to enjoy a seamless blend of performance, stability, and longevity in a reliable platform. Ubuntu Server is a highly regarded Linux distribution, widely used by developers, businesses, and hosting companies all over the globe.

Ubuntu Server has a reputation for being:

  • Stable
  • Secure
  • Long-term support, particularly in the LTS versions
  • Having a strong community behind it
  • Having a very low system footprint

But aside from these broad advantages, there are a number of underlying reasons why Ubuntu Server and Foundry Virtual Tabletop are a match made in heaven.

1. Stable Long-Term Support

Ubuntu has a Long-Term Support (LTS) version, which comes with five years of supported updates and patches. This means that your Foundry server can be up and running for a long time without having to worry about operating system updates. This is very important for game servers, as unexpected operating system updates can interfere with game sessions.

Ubuntu LTS offers stable performance and reliability, which means that your game server can be up and running for a very long time with minimal maintenance.

2. Low Resource Usage

The Ubuntu Server does not utilize extra graphical interfaces. It operates using a command-line interface. As a result, the resource usage is minimized. This allows more RAM and CPU to be allocated to the Foundry.

For example, the server might be hosting:

  • Large maps with dynamic lighting
  • Multiple players
  • Heavy automation modules
  • Animated tokens

Any extra resource saved on the server makes the gameplay experience smoother. Ubuntu allows the server to run at maximum efficiency without the need for expensive hardware.

3. Excellent Node.js Compatibility

Foundry VTT utilizes Node.js, and Ubuntu has good compatibility with Node.js environments. Managing the installation, upgrade, and versioning of Node.js environments is easy and well-supported. This includes the usage of package managers that can assist with the maintenance of dependencies.

Ubuntu also has good support for process managers such as PM2, which can be used for the following:

  • Keep your game running
  • Restart the game after crashes
  • Launch the game at boot time

This ensures that the game remains online despite reboots and crashes.

4. Strong Security Framework

Security is vital if you are hosting Foundry publicly, especially if the users are connected through the internet. The good news is that Ubuntu has some built-in tools that make it easy to secure your server. These include:

  • UFW (Uncomplicated Firewall) for controlling the open ports
  • Fail2Ban for preventing unauthorized users
  • SSH configuration for secure remote access
  • Automated security updates for patching security flaws

In addition, you can easily install SSL certificates for secure HTTP. Compared to other operating systems, Ubuntu has good security with minimal setup processes.

5. Easy Scalability and Cloud Compatibility

Another great advantage of Ubuntu is its scalability. Ubuntu can be easily scaled up and works great on:

If your campaign is successful, and you have to handle more than one game, Ubuntu can be easily scaled up. Therefore, it is a future-proof solution for gamers and professional server hosts.

6. Massive Community and Documentation

Ubuntu has one of the largest communities of users of the Linux platform. So, if you are ever in need of troubleshooting help while hosting your Foundry application, you can always find tutorials and guides readily available.

7. Cost-Effective Solution

Ubuntu Server is absolutely free to use. This means you do not have to incur any costs for the OS while hosting your application. This is particularly useful for hosting on a VPS or dedicated server.

Minimum System Requirements for Foundry on Ubuntu

Before installation, ensure your server meets these requirements:

For Small Private Games (3–5 Players)

  • 2 CPU cores
  • 4 GB RAM
  • 20GB SSD storage
  • Stable internet connection

For Larger Campaigns (6–10 Players + Mods)

  • 4 CPU cores
  • 8 GB RAM
  • 40GB+ SSD
  • Good upload bandwidth (at least 20 Mbps)

If you’re running heavy modules, maps, and animations, more RAM is always better.

Step-by-Step: How to Host Foundry on Ubuntu Server

Now let’s walk through the installation process.

Step 1: Update Ubuntu Server

Connect via SSH and run:

sudo apt update && sudo apt upgrade -y

This ensures your system is fully updated.

Step 2: Install Node.js

Foundry requires Node.js. Install it:

sudo apt install nodejs npm -y

Check version:

node -v

Make sure it matches Foundry’s required version.

Step 3: Create a Foundry Directory

mkdir ~/foundry
cd ~/foundry

Upload your Foundry VTT license files and application files here.

Step 4: Start Foundry Server

Run:

node resources/app/main.js –dataPath=~/foundrydata

You should now see Foundry running on:

http://your-server-ip:30000

Step 5: Configure Firewall (UFW)

Allow Foundry port:

sudo ufw allow 30000
sudo ufw enable

Now players can connect.

How to Keep Foundry Running 24/7

If you want Foundry to restart automatically after a reboot:

Install PM2:

sudo npm install -g pm2
pm2 start resources/app/main.js –name foundry
pm2 startup
pm2 save

This ensures your game server stays online.

Why Use a VPS for Hosting Foundry

Many users prefer to use a Windows VPS hosting India instead of hosting it at home.

Benefits of VPS:

  • 24/7 Uptime
  • Fast Upload Speed
  • Static IP
  • DDoS Protection
  • No Electricity Charges
  • No Home Internet Required

If you are a business owner, for example, at Main VPS, offering Ubuntu VPS for Foundry users can be a profitable business.

Should You Use a Dedicated Server Instead?

Dedicated servers low prices are recommended if:

  • You are running multiple campaigns
  • You are running Foundry commercially
  • You are running heavy modules
  • You are running 15+ players

For small private games, VPS is more than enough.

Performance Optimization Tips

Here are practical tips to improve performance:

1. Use SSD Storage

Foundry loads many assets like maps and tokens. SSD significantly reduces loading times.

2. Limit Heavy Modules

Too many add-ons can slow down performance. Only install what you truly need.

3. Enable Reverse Proxy with Nginx

Using Nginx improves performance and allows:

  • HTTPS (SSL certificate)

  • Custom domain

  • Port hiding

Install Nginx:

sudo apt install nginx

Configure reverse proxy for port 30000.

How to Add SSL (HTTPS)

To secure your Foundry server:

Install Certbot:

sudo apt install certbot python3-certbot-nginx

Then run:

sudo certbot –nginx

Now your Foundry server runs securely with HTTPS.

Common Issues & Fixes

Issue 1: Players Cannot Connect

  • Check the firewall.
  • Confirm port forwarding (if home server)
  • Ensure the server is running

Issue 2: Lag During Combat

  • Increase RAM
  • Disable unused modules
  • Optimize images

Issue 3: Server Crashes

  • Check Node version
  • Review logs
  • Increase swap memory

Security Best Practices

Never ignore security when hosting publicly.

  • Change the default admin password immediately
  • Disable root SSH login
  • Use SSH key authentication
  • Keep Ubuntu updated
  • Install Fail2Ban
  • Use SSL certificate

Is Ubuntu Better Than Windows for Foundry?

Here’s a simple comparison:

FeatureUbuntu ServerWindows Server
CostFreePaid License
PerformanceLightweightHeavier
SecurityStrongGood
Resource UsageLowHigher
StabilityExcellentGood

For most users, Ubuntu is the smarter choice.

Bandwidth Considerations

Each player typically uses:

  • 50–150 KB/s during active gameplay

For 5 players:

You may need around 5–10 Mbps upload speed.

If hosting from home, upload speed matters more than download speed.

Backup Strategy

Always back up your Foundry data folder:

tar -czvf foundry-backup.tar.gz ~/foundrydata

Store backups:

  • Locally
  • On cloud storage
  • On the external server

This protects your campaign data.

Final Thoughts

Can you run Foundry on an Ubuntu server? The answer is yes, and it is perhaps the most efficient, secure, and professional way of running your Foundry Virtual Tabletop experience. Ubuntu server is the perfect choice for you because it is a balanced mix of stability, security, low resource usage, strong Node.js support, and full control of your server environment. It is a lightweight operating system designed for efficiency and performance, which means more of your server’s CPU and memory will be directly allocated to your game experience.

Whether you are a hobbyist looking to run your tabletop experience for your friends or a professional looking to build a business based on tabletop hosting, Ubuntu server is the perfect choice for you because of its flexibility and reliability, which are necessary for your long-term success.

Frequently Asked Questions

1. Can I host Foundry on Ubuntu Server without technical experience?

Yes, you can host Foundry Virtual Tabletop on Ubuntu Server even if you are not an advanced system administrator. Basic knowledge of SSH and command-line operations is helpful, and there are many step-by-step guides available to assist beginners.

2. Which Ubuntu version is best for hosting Foundry?

Ubuntu 22.04 LTS or the latest LTS (Long-Term Support) version is recommended. LTS releases provide five years of security updates and stable performance, making them ideal for long-term hosting.

3. How much RAM do I need to run Foundry smoothly?

For small games with 3–5 players, 4GB RAM is usually sufficient. For larger groups, heavy modules, or animated maps, 8GB or more is recommended for optimal performance.

4. Do I need a domain name to host Foundry on Ubuntu?

A domain name is not mandatory, but it is highly recommended. A domain makes it easier for players to connect and allows you to install an SSL certificate for secure HTTPS access.

5. Can I run multiple Foundry worlds on one Ubuntu server?

Yes, you can host multiple worlds on the same server, depending on your available CPU and RAM. However, higher resource usage may require upgrading your VPS or dedicated server.

6. Is Ubuntu more secure than Windows for hosting Foundry?

Ubuntu Server is generally considered more secure for hosting environments due to its lightweight design, strong firewall tools, and fewer background services. Proper configuration is still essential for maximum protection.

7. Can I use Docker to host Foundry on Ubuntu?

Yes, Foundry can be deployed using Docker on Ubuntu. This approach simplifies management, backups, and updates, especially for users familiar with container environments.

8. What port does Foundry use by default?

Foundry typically runs on port 30000 by default. You can change this in the configuration settings if needed.

9. Is VPS hosting better than hosting from home?

In most cases, yes. A VPS offers better uptime, faster upload speeds, a static IP address, and improved reliability compared to home internet connections.

10. How do I keep my Foundry server running 24/7?

You can use a process manager like PM2 on Ubuntu Server to keep Foundry running continuously. This ensures automatic restarts if the server reboots or encounters an unexpected crash.

Suggestions:

  1. https://mainvps.net/blog/linux-reseller-hosting/
  2. https://mainvps.net/blog/lifetime-web-hosting-2026/
  3. https://mainvps.net/blog/windows-reseller-web-hosting/
  4. https://mainvps.net/blog/best-wordpress-hosting-providers/
  5. https://mainvps.net/blog/linux-vps-hosting-india/
  6. https://mainvps.net/blog/low-cost-windows-vps-hosting-in-india/
  7. https://mainvps.net/blog/cheap-dedicated-server-hosting-providers/
  8. https://mainvps.net/blog/windows-server-guide-dde-dns-tls-1-2-uptime/
  9. https://mainvps.net/blog/dedicated-server-hosting-netherlands/
  10. https://mainvps.net/blog/dedicated-server-low-price/
  11. https://mainvps.net/blog/vps-hosting-in-los-angeles-us/
  12. https://mainvps.net/blog/dedicated-server-in-nedzone-nl/