How to Port Forward an Assetto Corsa Server
Port forwarding for an Assetto Corsa server lets players outside your local network connect directly to your hosted race. It works by telling your router to send incoming traffic on specific ports to your PC running the server. Before you start, you need: a router with admin access, a static or reserved IP address for your PC (or you can set one up during the steps), and the Assetto Corsa server files already downloaded and configured.
What You’ll Need
- Router admin login (usually found on a sticker or in the manual)
- Your PC’s local IP address (e.g., 192.168.1.100)
- Assetto Corsa server files (from Steam or the dedicated server package)
- Assetto Corsa server configuration files (server_cfg.ini, etc.)
Step-by-Step
- Set a static IP for your PC. Open Command Prompt (Windows) and type
ipconfig. Note your IPv4 address (e.g., 192.168.1.100) and your default gateway (e.g., 192.168.1.1). You’ll need to reserve this IP in your router so it doesn’t change. Log into your router’s admin panel (type the gateway IP into a browser), find the DHCP reservation or static IP section, and add your PC’s MAC address (found inipconfig /all) with the IP you chose. Alternatively, set a static IP in Windows network settings. - Find the Assetto Corsa server ports. The default ports for Assetto Corsa are: TCP 8081 (HTTP for server info), UDP 9600 (game traffic), and UDP 8081 (also for server info). Some setups also use TCP 9600 for the server’s query port. Check your server_cfg.ini for the
HTTP_PORTandPORTsettings; the default is 8081 for HTTP and 9600 for the game port. - Log into your router. Open your router’s admin page (usually http://192.168.1.1 or http://192.168.0.1, but check your router’s manual). Enter the admin username and password. If you don’t know them, try common defaults like ‘admin’/’admin’ or ‘admin’/’password’, but it’s safer to check the router’s label or manual.
- Locate the port forwarding section. This is often under ‘Advanced’, ‘NAT’, ‘Virtual Server’, or ‘Port Forwarding’. The exact name varies by router brand (e.g., TP-Link, Netgear, Asus).
- Create a new port forwarding rule. Click ‘Add’ or ‘Create New’. You’ll need to enter:
- Service name: e.g., ‘AC Server’ (any name).
- Protocol: Choose TCP for the HTTP port (8081), and UDP for the game port (9600). Some routers allow ‘Both’ or ‘TCP/UDP’.
- External port: The port number as seen from the internet (e.g., 8081). If you use the same as internal, it’s simpler.
- Internal port: The port on your PC (same as external usually).
- Internal IP: The static IP you set in step 1 (e.g., 192.168.1.100).
Save the rule.
- Add separate rules for each port. You need at least two rules: one for TCP 8081, one for UDP 9600. If your server uses a different game port (e.g., 9601), add that too. Some routers let you create a range, but individual rules are safer.
- Enable the rules. Make sure the rule is enabled (checkbox or toggle). Some routers require a reboot or ‘Apply’ button.
- Configure your firewall. Windows Firewall may block incoming connections. Go to Control Panel > Windows Defender Firewall > Advanced Settings > Inbound Rules. Create new rules to allow TCP 8081 and UDP 9600 (and any other ports you forwarded). You can also allow the Assetto Corsa server executable (acs.exe) through the firewall.
- Start your server. Run the Assetto Corsa server (usually via ‘start_server.bat’ or the dedicated server executable). Ensure it loads without errors.
- Test the port forwarding. Use an online port checker (like ‘canyouseeme.org’) or have a friend try to connect. Enter your public IP address (find it by searching ‘what is my IP’ in a browser) and the game port (9600). If it shows ‘Success’, you’re done.
Common Mistakes
- Wrong IP address: Using a dynamic IP that changes after a reboot. Always set a static/reserved IP.
- Mixing up TCP and UDP: The HTTP port is TCP, the game port is UDP. If you forward the wrong protocol, it won’t work.
- Forgetting to forward both ports: Some players can see the server but can’t join if only the HTTP port is forwarded.
- Firewall blocking: Even with port forwarding, Windows Firewall or antivirus can block incoming connections.
- Using the wrong public IP: Your public IP changes unless you have a static IP from your ISP. Use a dynamic DNS service if it changes often.
Tips
- Use a dynamic DNS service: If your public IP changes, set up a free DDNS like No-IP or DuckDNS so players can connect via a hostname.
- Test locally first: Connect to your server using your local IP (e.g., 192.168.1.100:9600) to ensure it’s running before testing externally.
- Keep your server config consistent: Ensure the ports in server_cfg.ini match the ports you forwarded.
- Check your router’s manual: Some routers have a ‘Port Triggering’ option that can interfere; disable it if you have issues.
- Use a VPN as a fallback: If port forwarding is impossible (e.g., CGNAT), consider a VPN service like Hamachi or Radmin VPN for a virtual LAN.
Troubleshooting
- Port check fails: Re-verify your static IP, rule protocol, and that the server is running. Also, check if your ISP uses CGNAT (carrier-grade NAT) which prevents port forwarding; contact them or use a VPN.
- Players can see the server but can’t join: Often a firewall issue. Temporarily disable Windows Firewall to test; if it works, add the correct inbound rules.
- Server doesn’t appear in the server list: The HTTP port (8081) might not be forwarded correctly. Also, ensure the server is set to ‘public’ in the config.
- Connection times out: Double-check the internal IP. If you have multiple network adapters, the server might be bound to the wrong one.
- Router doesn’t have a port forwarding option: Some ISP-provided routers are locked down. Try logging in with the full admin credentials, or contact your ISP. Alternatively, use a VPN solution.
Frequently Asked Questions
Do I need to port forward for a single-player server?
No, port forwarding is only needed for players outside your local network. For local play, you can connect via your LAN IP.
What is the default port for Assetto Corsa?
The default game port is UDP 9600, and the HTTP port is TCP 8081. Some versions use 8081 for both, but it’s safer to forward both protocols on both ports.
Can I use a different port number?
Yes, you can change the ports in the server configuration, but you must forward the new ports accordingly. Be aware that some ISPs block certain ports, so stick to common ones like 9600-9700.
Why can’t I connect to my own server using my public IP?
This is a common issue called ‘NAT loopback’. Many routers don’t support it. Test with a friend or use a port checker to verify externally. You can still connect locally via your LAN IP.
Does port forwarding work with a VPN?
If you use a VPN on your PC, the server’s traffic goes through the VPN, and port forwarding on your router may not apply. You’d need to configure port forwarding on the VPN provider, which is often not possible. For hosting, it’s best to run the server without a VPN.
What if my public IP is dynamic?
Your IP can change, breaking connections. Use a dynamic DNS service to get a hostname that always points to your current IP. You can also ask your ISP for a static IP, but that often costs extra.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.