Skip to content
Pat Host
Servers Free hosting Pricing Guides FAQ About Status Discord Open panel
Home / Guides / Subdomains and HTTPS
Guide

Subdomains and HTTPS

Published 28 November 2026

Every server on Pat Host has an address made of a node name and a port number. That works, but it is hard to remember and easy to mistype. A subdomain gives your server a short name of its own, such as yourname.pathost.xyz, and for web apps it can also give you a proper HTTPS address with no port at all.

What a subdomain is

A subdomain is a name that points at something. When a player types yourname.pathost.xyz, their game looks that name up and is sent to your server's node and port. Nothing about the server itself changes: the old address from the Network tab keeps working, and the subdomain is simply an easier way to reach the same place.

That has a few practical benefits:

  • It is easy to share. A name you chose is much easier to post in a Discord server or say out loud than a node address and a five-digit port.
  • Java players need no port. They type the name and nothing else.
  • It looks like yours. A name that matches your server or community helps people recognise it in their server list.

Creating a subdomain

  1. Open your server in the panel and go to the Subdomain tab.
  2. Type the name you want. Short, lower-case names without spaces are the easiest for players to type correctly.
  3. Choose which of the server's ports the name should point at. For most servers there is only one, the game port. See choosing the right port if you have more.
  4. Create it. Your server's new address is <name>.pathost.xyz.

If the name you wanted is taken, try a variation, such as adding your community's initials or the type of server (smp, pvp, bot).

Joining with the new address

Java Edition

  1. Open Multiplayer and choose Add Server.
  2. Enter yourname.pathost.xyz as the server address, with no colon and no port.
  3. Save, then join from the list.

Bedrock Edition

Bedrock Edition always asks for a port. Enter the name as the address and 19132 as the port. Because 19132 is Bedrock's default, the port field is usually already filled in correctly and players only need to type the name.

A Java server only accepts Bedrock players if crossplay is turned on. If you want both editions to join, read the crossplay guide first.

Players can still find your server through the hub as well: join play.pathost.xyz and pick it from the server list. See joining the hub.

Choosing the right port

A port is like a door number on the node. Each program on your server listens on its own port, and a subdomain points at exactly one of them. The Network tab lists the ports your server has.

  • A Minecraft server: pick the main game port, the one the server uses for players. This is the port shown as the server's address.
  • A web app or bot with a web page: pick the port your program actually listens on. In your code, that is the port number you pass to your web framework.
  • A server with extra programs, such as a web map running beside a game: decide what the name is for. A subdomain for the game and a subdomain for the map are two separate subdomains, each pointing at its own port.

One more detail for your own programs: listen on all addresses (0.0.0.0), not on localhost or 127.0.0.1. A program that only listens on localhost can be reached from inside the server but not from the internet, so the subdomain will appear dead even though the program is running.

HTTPS for web apps

If your server runs a web app, such as a Node.js or Python program that serves a page, a dashboard for a bot, or a small API, the Subdomain tab shows an Enable HTTPS option for it. You will not normally see it for a game server, because a game server does not serve web pages.

When you turn it on, your app becomes reachable at https://yourname.pathost.xyz, with no port in the address. It is set up automatically and is usually ready in about 30 seconds.

What it does for you

  • A secure connection. Visitors get the padlock in their browser, and data such as logins travels encrypted.
  • No certificate work. You do not need to get a certificate, renew it, or add HTTPS code to your app. Keep your app serving ordinary HTTP on its port.
  • A clean link. No port number to remember, and no browser warnings about an insecure page, which matter if you link to the page from Discord or a bot's profile.

WebSockets work through the HTTPS address too, so live dashboards and chat pages are fine. On the page itself, connect with wss://yourname.pathost.xyz rather than ws:// and a port, or the browser will block the connection as insecure.

Turning it on

  1. Start your app and check the console to make sure it is running and listening on its port.
  2. In the Subdomain tab, create a subdomain that points at that port, if you have not already.
  3. Press Enable HTTPS and wait about 30 seconds.
  4. Open https://yourname.pathost.xyz in a browser.

If you are new to hosting programs, the Discord bot guide covers uploading code and reading the console.

Common problems

  • Running a website on a Minecraft port. The game port belongs to the game. A web server added to a Minecraft server cannot share that port, and a subdomain pointing at the game port will never show a web page. Put the web program on its own port, or on a separate server.
  • The server was not running when you enabled HTTPS. The option is for a running web app. If the app is stopped, has crashed, or is still starting, start it, wait until the console shows it is listening, and try again.
  • The page does not load. Check that the subdomain points at the port your app listens on, and that the app listens on 0.0.0.0. A port mismatch is by far the most common cause.
  • Java players typed a port. With a subdomain, Java players should enter the name only. If someone saved an old address, ask them to edit the entry in their server list.
  • Bedrock players cannot connect. Check that crossplay is on for a Java server, that they used port 19132, and that the server is running.
  • The server is asleep. A free server with nobody on it stops after a while. That is normal and does not affect the subdomain; see how server sleep and wake-up works.
  • It worked a minute ago on another device. Name lookups are sometimes remembered by phones and routers for a short time after a change. Wait a few minutes, or restart the game, and try again.

Related guides

  • Creating a free server
  • Turning on Java and Bedrock crossplay
  • Hosting a Discord bot
  • Joining the hub
Pat Host

Free Minecraft, Mindustry and bot servers in the UK, Australia and Canada, paid plans there and in Texas, and one hub address for every server: play.pathost.xyz.

Pat Host

  • Server browser
  • How the hub works
  • Free hosting
  • Guides
  • About Pat Host
  • Panel

Paid plans

  • Plans
  • Custom plan
  • How to order
  • FAQ

Help

  • FAQ
  • Contact
  • Discord
  • Server status
  • Terms of Service
  • Privacy Policy
© 2026 Pat Host Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.