One address, many servers
IPv4 addresses are scarce, so a VPS on a shared address does not get a public address of its own. Several servers sit behind one public IPv4 address, and each server is given its own block of ports on that address. Traffic that arrives on one of your ports is passed to your VPS and to nobody else.
Your VPS is still a full server. You have root access, you choose the operating system and you install what you like. The only difference is which ports the outside world can use to reach it.
Connecting with SSH
VPS management lists your assigned port range and your SSH port in the Custom domains section. The first TCP port of your block connects to SSH on your VPS. Inside the VPS, SSH still listens on its usual port 22; you only use the assigned port when connecting from outside.
ssh -p YOUR_SSH_PORT root@YOUR_ADDRESSTo avoid typing the port each time, add the server to the SSH configuration file on your own computer.
Host my-vps
HostName YOUR_ADDRESS
Port YOUR_SSH_PORT
User rootAfter that, ssh my-vps is enough. File transfers over SFTP and scp use the same port.
Running your own services
The other ports in your block keep their number. A connection to one of them on the shared address arrives at the same port number on your VPS, for both TCP and UDP. To publish a service, make it listen on a port from your block.
- A game server: set its port to one from your block and give players the address and that port.
- An API or web application: listen on a port from your block and open it as http://YOUR_ADDRESS:YOUR_PORT, or connect your own domain to it as described below.
- Several services: give each one its own port from the block.
Check that the service listens on all interfaces, not only on 127.0.0.1, and that a firewall inside the VPS allows the port.
sudo ss -tulpn
sudo ufw allow YOUR_PORTWebsites and your own domain
You can host a website or web app on a shared IPv4 address. Browsers expect sites on ports 80 and 443, and those two ports belong to the shared address, not to your block. Custom domains in VPS management cover this: Velbyr serves HTTPS on your domain and forwards it to a port on your VPS.
- Run your site or web app on a port from your block.
- In VPS management, open Custom domains, enter your domain and choose that port as the web app port.
- At your DNS provider, add the A record and the TXT record the page shows. Keep them DNS-only, not proxied through a CDN, and remove any AAAA record for the same hostname.
- Select Verify DNS.
Once the domain is verified, visitors open it over HTTPS with no port in the address. Web forwarding carries HTTPS only. Everything else uses its assigned port, and your domain works there too: your-domain:YOUR_SSH_PORT for SSH, or your-domain:YOUR_PORT for a game server.
When a dedicated IPv4 address is the better fit
- You need a standard port for something other than web traffic.
- Your software cannot change the port it listens on.
- You need more ports than your block provides.
- Another service must see a public address that only you use.
The current networking details for each location, including whether a dedicated address can be added at checkout, are shown with the plans.