How to Find Your Game Server's IP and Port
what is my server IPserver addressconnect IPTo let friends join, they need your server's IP address and port. Where you find them depends on whether the server is hosted or running on your own PC.
On a hosted server
Your host shows the server's IP and port in the control panel and the welcome email — usually as ip:port (e.g. 217.156.22.2:27015). That full address is exactly what you share. Done.
On a server you run at home
There are two different IPs, and that trips people up:
- Local IP (like
192.168.1.50) — only works for people on your own network/LAN. - Public IP — what people on the internet use. Find it by searching "what is my IP" or:
# show your public IP from the server
curl ifconfig.me
Your public IP is your home connection's IP. Sharing it widely exposes you to DDoS. Only share it with people you trust — or host the server so it has its own protected IP.
Finding the port
The port is set in the server's config (or your start command). Defaults: Minecraft 25565, Source/CS2 27015, Rust 28015, FiveM 30120. If you changed it, share that number after a colon.
Test it actually works
Don't make friends be your test. Check the address from outside your network with our server status checker — if it shows online, your ip:port is correct and reachable.
Hosted server: copy ip:port from the panel. Home server: share your public IP (carefully) plus the port — and test it from outside first.
A clean ip:port, protected
Every ESAGAMES server comes with its own protected IP and port — share it freely, attacks are filtered for you.
Frequently asked questions
What's the difference between my local and public IP?
Your local IP (192.168.x.x) only works inside your home network. Your public IP is what the rest of the internet sees and is the one friends outside your network must use to connect.
How do I find what port my server uses?
It's in the server's config file or start command. If you never changed it, it's the game's default (Minecraft 25565, CS2 27015, Rust 28015, FiveM 30120).
Is it safe to share my server's IP?
For a hosted server with DDoS protection, yes. For a home server, your public IP is also your home connection — share it only with people you trust, since it can be targeted.
Related articles
How to Port Forward for a Game Server (and Why You Might Not Need To)
How to port forward a home game server — the steps, the ports, and why CGNAT can block it.
Read fix NetworkingFix "Connection Timed Out" When Joining a Game Server
"Connection timed out" joining a server? How to tell whose side it is — and fix it.
Read fix NetworkingWhat Causes Packet Loss in Games (and How to Fix It)
Rubber-banding and warping is packet loss, not lag. What causes it, how to test, and how to fix it.
Read fix