Hostxpeed
Login Get Started →
Getting Started

How to Open a Port on VPS

3 min read
21 views
Jun 13, 2026

Prerequisites

Before opening a port, make sure you have:

  • SSH access to your VPS
  • Root or sudo privileges
  • UFW firewall installed and enabled

Step 1: Connect to Your VPS

ssh hxroot@YOUR_SERVER_IP -p 22

Step 2: Check UFW Status

sudo ufw status

Step 3: Open a Port

Open TCP port (most common):

sudo ufw allow 8080/tcp

Open UDP port:

sudo ufw allow 53/udp

Open port range:

sudo ufw allow 6000:6007/tcp

Step 4: Verify Port is Open

sudo ufw status numbered

✅ Port has been opened. The service listening on that port can now accept external connections.

Was this article helpful?