# Set Up Minecraft SRV Record – Connect Server via Domain Without Port

Connect Minecraft server via domain: set up SRV & A records, port 25565, Java & Bedrock – step-by-step for NexoraHost game servers.

**Quick answer:** With an SRV record players connect using `mc.yourdomain.com` instead of `192.168.1.1:25565`. The SRV record automatically tells the client IP and port – more professional and easier for players.

## Why SRV record instead of IP only?

IP + port onlyDomain + SRV record
Players enter192.168.1.1:25565mc.yourdomain.com
On IP changeInform all playersJust change A record
Professional❌✅
## Set up SRV record – step by step

### Step 1: A record for subdomain

`Type:  A
Name:  mc
Value: 192.168.1.100
TTL:   3600`### Step 2: SRV record for Minecraft

`Type:     SRV
Name:     _minecraft._tcp.mc
Priority: 0
Weight:   5
Port:     25565
Target:   mc.yourdomain.com
TTL:      3600`### Step 3: Test

- Minecraft Java Edition → Multiplayer → Add Server
- Address: `mc.yourdomain.com` (no port!)
- Connect
## Java vs Bedrock

EditionSRV serviceDefault portSRV works?
Java Edition`_minecraft._tcp`25565✅ Yes
Bedrock Edition`_minecraft._udp`19132⚠️ Limited
## Related guides

- [DNS explained](/en/domain/dns-what-is-it)
- [Domain & DNS hub](/en/domain)
- [Minecraft guides](/en/gameserver/minecraft)
- [Firewall & ports](/en/root-v-server/firewall-ports)
SRV _minecraft._tcp + A record on subdomain → players connect without port.
