Skip to content

Networking & firewall

How to reach your instance, publish a site, attach a domain, and open a TCP port.

Networking - addresses, sites, domains, and TCP ports

Your addresses

Your instance is reached through the public IP and SSH port shown in Networking. Several instances can share the same IP; the port and hostname keep your traffic separate.

Examples below use 203.0.113.10, a reserved documentation address. Use the IP and port shown in your dashboard.

AccessAddressWhat to use it for
SSHssh -p 22000 root@203.0.113.10Terminal access. The port stays the same across restarts and rebuilds.
Websitehttps://my-site.nairacloud.xyzThe default site's NairaCloud address. If it is not resolving yet, use the sslip alias on the site card.
Custom domainhttps://your-domain.comYour own hostname, after you point DNS at the IP and attach it to a site.
Raw TCPtcp://203.0.113.10:23001Databases, game servers, MQTT, and other non-HTTP services.

Use the exact website URL or an attached domain. The bare IP and unknown hostnames return 404.

Sites

A site connects a public hostname to a port inside your instance. Every instance starts with one site:web on port 80.

  • Add a site for each HTTP app, for example api on port 3000.
  • You can have up to 10 sites per instance.
  • Use lowercase letters, digits, and dashes for the label.
  • If your app listens on another port, change the site's origin port in the Networking tab.
  • A hostname can belong to only one site.

Custom domains

Point an A record at your instance's public IP, then attach the domain to the site you want it to serve. HTTPS is issued automatically once DNS resolves.

Practical -- try it now

Attach your domain

  1. Copy the public IP from Networking.
  2. At your registrar, add an A record for your domain pointing to that IP.
  3. In Custom domain, add the domain and choose the site it should serve.

Keep the record DNS-only. If your provider offers a proxy, such as Cloudflare's orange cloud, turn it off. DNS changes can take a few minutes to an hour.

Raw TCP ports

Use Publish a TCP port when your service does not speak HTTP. Choose the port your app listens on inside the instance; the platform gives you a public port.

  • Up to 10 published ports per instance, including SSH.
  • TCP only. The platform does not add TLS to raw TCP, so secure the service yourself.
  • Published ports are open to the internet. Never expose a database without authentication.
  • Use Sites for ports 80 and 443 instead of publishing them directly.

Firewall & outbound traffic

  • Outbound port 25 is blocked. Use an email provider such as SendGrid, Postmark, or SES.
  • Your instance is isolated from other customers' instances.
  • Custom inbound firewall rules are not available yet.

To preview an app locally without exposing it, forward the port over SSH:

bash
$ ssh -N -p 22000 root@203.0.113.10 -L 8080:127.0.0.1:8080
# then open http://localhost:8080

Need the full walkthrough? Read Custom domains or Raw TCP ports.

Ask a question...
Ctrl+I