When setting up a VPS or cloud server, one of the first steps is assigning a Primary IP. The Primary IP is the main IP address used for server management, internet communication, and connecting clients. At Cyberin, we guide developers, sysadmins, and cloud enthusiasts through practical, step-by-step, and secure server setups.
A Primary IP is the main IP address assigned to a server or network interface. It acts as the server’s unique identifier on the internet, allowing access and communication.
Key points about Primary IPs:
Publicly accessible: Allows connections from anywhere on the internet.
Main point of communication: Used for SSH, HTTP/HTTPS, and other services.
Unique: Each network interface can only have one primary IP; additional IPs are added as secondary IPs.
To access your server remotely via SSH or RDP.
To host websites, APIs, or cloud services.
To serve as a gateway for additional IPs in complex networks.
To enhance server management by clearly defining the main access point.
Depending on whether you are creating a new server or updating an existing one, the steps differ slightly. Below, we explain exactly where and how to access network configuration on both VPS consoles and local computers.
Most cloud providers (AWS, DigitalOcean, GCP, etc.) automatically assign a primary IP during server creation:
Choose your server size and location.
The system automatically assigns a primary IP (usually public).
Configure your OS, credentials, and hostname.
Tip from Cyberin: Always note the primary IP—it is your main access point for SSH and web services.
Open your VPS console (through the cloud provider dashboard, e.g., AWS EC2 → Connect).

Open the network configuration file:
Ubuntu 18.04+ uses Netplan:
sudo nano /etc/netplan/01-netcfg.yaml
Older Ubuntu/Debian may use:
sudo nano /etc/network/interfaces
Add or update the primary IP for your network interface (e.g., eth0):
network:
version: 2
ethernets:
eth0:
dhcp4: no
addresses:
- 203.0.113.10/24
gateway4: 203.0.113.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
Save the file (CTRL+O, Enter) and exit (CTRL+X).
Apply changes:
sudo netplan applyNow your VPS is reachable via the new primary IP.
Open Network Settings:
Press Windows + R, type ncpa.cpl, and press Enter.
Right-click your network adapter → Properties → Select Internet Protocol Version 4 (TCP/IPv4) → Properties.
Choose Use the following IP address, then enter:
IP Address: your primary IP
Subnet Mask: usually 255.255.255.0
Default Gateway: your network gateway
Click OK to save and close all windows.
Many VPS/cloud providers allow you to manage Primary IPs directly from their dashboard:
DigitalOcean: Networking → Assign Floating IP
AWS: EC2 → Elastic IP → Associate with Instance
Google Cloud: VPC Network → External IP → Reserve & Assign
This is often easier for beginners than manually editing network files.
Keep it secure: Share the primary IP only with authorized users.
Use SSH keys: Avoid passwords for remote access.
Document IPs: Maintain a record of all server primary IPs.
Monitor activity: Track traffic and access logs to detect anomalies.
Assigning a Primary IP is a crucial step in server setup and management. Whether on a VPS, cloud server, or local machine, the primary IP serves as the main access point for your server.
Following Cyberin best practices ensures your server remains accessible, organized, and secure.
Tip: Always combine your primary IP with firewall rules and SSH key authentication to maintain a secure and reliable server environment.