Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
VGSources
Blog

How to Port Forward a Garry’s Mod Server at Home

Forward UDP 27015 to a stable server PC address, allow it through the host firewall, and test from outside your LAN. This guide also explains RCON, double NAT, and CGNAT failures.
Length9 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To let friends join a Garry’s Mod server hosted on your home network, run the dedicated server on a computer with a stable private IPv4 address, forward its gameplay port (UDP 27015 by default) from your router to that address, allow the same port through the computer’s firewall, and test from outside your home network. Add TCP 27015 only when you need the default RCON service. If your router does not have a true public IPv4 address, ordinary port forwarding may be impossible because of carrier-grade NAT.

What port does a Garry’s Mod server use?

A standard Source dedicated server uses UDP 27015 for gameplay. Steam lists TCP 27015 as the default SRCDS RCON port. These are separate services: players need the UDP rule, while RCON needs the TCP rule and should not be exposed unless you actually use it.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Purpose Default port Protocol Forward it?
Player connections and game traffic 27015 UDP Yes, for an internet-accessible server
SRCDS RCON administration 27015 TCP Only if RCON is enabled and required
Explicit alternate server port Your chosen value Usually UDP for gameplay Use the value shown in the server launch command

The port number is not enough by itself. A working connection requires all of these pieces to agree:

  • The server must be listening on the selected port.
  • The router must send internet traffic on that port to the server computer’s private IPv4 address.
  • The host operating system’s firewall must allow the same protocol and port.
  • Your router’s WAN connection must have a publicly reachable IPv4 address, rather than another private or carrier-grade NAT address.

Before you forward anything

Install the dedicated-server files

Facepunch’s dedicated-server documentation uses SteamCMD app ID 4020 for Garry’s Mod. Install or update that app before configuring the router. A typical SteamCMD update sequence is:

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
app_update 4020
app_update 4020 validate

validate is optional; it asks SteamCMD to verify the installed files. Run it when you suspect a damaged or incomplete installation, not as a substitute for fixing network configuration.

Start the server and identify its listening port

Facepunch documents srcds.exe on Windows and ./srcds_run -game garrysmod on Linux. Start the server with your map and player-limit options, and include an explicit -port if you want a value other than the default. For example:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
srcds.exe -game garrysmod +map YOUR_MAP +maxplayers YOUR_LIMIT -port 27015
./srcds_run -game garrysmod +map YOUR_MAP +maxplayers YOUR_LIMIT -port 27015

Replace the map and limit with the values you intend to use. If you omit -port, confirm which port the server reports while starting rather than assuming that a previous configuration still applies. Any alternate port must be used consistently in the launch command, router rule, firewall rule, and the address your friends enter.

Find the server computer’s private IPv4 address

The forwarding destination is the server PC’s address on your home LAN, not its public internet address. Record the current private IPv4 address and the router’s WAN address before creating rules. A typical private address is in a private IPv4 range; the exact value depends on your router’s LAN configuration.

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Give the server a stable private address

Port forwarding rules target an IP address. If the router later gives the computer a different address through DHCP, the rule can point at the wrong device and your friends will lose access.

Preferred method: DHCP reservation

  1. Sign in to the router’s administration interface.
  2. Open the DHCP, LAN, or connected-devices section.
  3. Locate the server computer and create a DHCP reservation for its network adapter.
  4. Save the reservation, then renew the computer’s lease or restart networking.
  5. Verify that the computer received the reserved IPv4 address before making the forwarding rule.

A reservation keeps the address managed by the router while making it predictable for forwarding.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Alternative: a manually configured static address

You can configure an equivalent stable private IPv4 address on the computer, but it must not collide with another device and should normally be outside the router’s automatic DHCP pool. You also need the correct subnet mask, gateway, and DNS settings. If those values are wrong, the server may appear to run locally while losing internet access. For most home networks, a DHCP reservation is less error-prone.

Create the router port-forwarding rule

Router interfaces use different labels, but look for Port Forwarding, Virtual Server, or NAT Forwarding. Google’s router documentation describes the function as sending a connection request received on a specified port to a chosen device.

Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
  1. Open the router administration page from a device on the home network.
  2. Navigate to the port-forwarding or NAT section.
  3. Create a rule whose destination device is the server computer’s reserved private IPv4 address.
  4. Set the external (WAN) port to the server’s selected gameplay port, normally 27015.
  5. Set the internal (LAN) port to the same value unless you have a deliberate one-to-one translation.
  6. Select UDP for gameplay and save the rule.
  7. If you deliberately enabled the default RCON service, create a separate TCP 27015 rule. Otherwise, do not add it.
  8. For an alternate server port, forward that exact port and protocol instead of adding an extra 27015 rule.
Rule External port Internal address Internal port Protocol
Garry’s Mod gameplay 27015 (or your chosen port) Reserved server IPv4 Same as external port UDP
Optional default RCON 27015 Reserved server IPv4 27015 TCP

Some routers let you select both TCP and UDP in one entry. A combined rule can work, but separate entries make it clear that RCON is not being exposed accidentally.

Allow the port through the host firewall

Router forwarding cannot bypass the firewall on the computer running the server. Permit inbound traffic for the gameplay port and, only when needed, the RCON port.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Windows

In Windows Defender Firewall with Advanced Security, create an inbound rule for the server executable or for the selected local port. Choose UDP for gameplay on 27015 (or your alternate port). If RCON is enabled, create a separate TCP rule for its port. Apply the rule only to the network profiles you need, and keep the server computer’s profile and exposure under review.

Linux

Use the firewall manager configured on the distribution and allow the selected UDP gameplay port. Add the TCP RCON port only when required. The command and syntax differ between firewall managers, so verify the active firewall and its rules rather than opening every port. The important match is protocol plus port: allowing TCP does not allow UDP gameplay.

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

Keep RCON restricted

RCON is an administrative interface, not a requirement for players to connect. Use a strong password, restrict permitted source addresses where your setup allows it, and disable RCON when you do not need remote administration. Do not expose unrelated services as a workaround for a server that is not reachable.

Test the server from outside your home network

Testing from the same Wi-Fi does not prove that internet players can connect. Many routers lack NAT loopback (also called hairpin NAT), so a public-address test from inside the LAN can fail even when the forwarding rule is correct.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Leave the dedicated server running and confirm it is listening on the configured port.
  2. Give a friend the public IPv4 address and port, or use an external port-checking service while the server is running.
  3. Have the friend connect from a different internet connection, such as mobile data or their own home network.
  4. If the connection succeeds externally, the router, firewall, and public address are functioning for that port.
  5. If it fails, work through the troubleshooting order below instead of adding random rules.

Use the public IPv4 address shown by your internet connection, not the server’s private LAN address. If your public address changes, friends will need the new value unless you use a separate address-management service.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot in the order that isolates the fault

The server works on the LAN but not remotely

  • Check that the server is listening on the port you actually selected.
  • Confirm the router rule uses UDP for gameplay; a TCP-only rule will not carry normal game traffic.
  • Verify that the destination IPv4 address is still assigned to the server computer.
  • Check the host firewall for an inbound rule matching the same UDP port.
  • Retest from a genuinely external connection, because a local public-address test may be blocked by missing NAT loopback.

The router shows a private WAN address

Compare the router’s WAN/Internet IPv4 address with the public IPv4 address reported by a service outside your network. If the router WAN address is private, falls in 100.64.0.0/10 (100.64.0.0 through 100.127.255.255), or differs from the public address, another NAT layer is probably present.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

Carrier-grade NAT (CGNAT) lets an ISP share public IPv4 space among customers. Because the customer does not control the upstream translation, a home router cannot create the unsolicited inbound mapping required for a public game server. Ask the ISP whether a real public IPv4 address is available. If it is not, use a hosting or relay arrangement that accepts inbound connections on your behalf instead of repeatedly changing the local rule.

Two routers are installed

Multiple routers create double NAT. Identify which device has the public WAN address and which device provides the server’s LAN address. Where supported, put the ISP gateway into bridge mode so one router performs NAT. Otherwise, forward the gameplay port from the outer gateway to the inner router’s WAN address, then create a second rule on the inner router to the server’s private IPv4. Repeat the same protocol and port at both layers, and verify each device’s WAN and LAN addresses before changing firewall settings.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Friends can connect only intermittently

  • Check whether the server computer received a new private IPv4 address; recreate the DHCP reservation if necessary.
  • Check whether your public IPv4 address changed since the last successful session.
  • Confirm that the dedicated server is still running and listening on the configured port.
  • Look for competing port-forward rules or another program using the same port.
  • Verify that the router did not disable the rule after a firmware update or configuration restore.

The server is visible but a connection fails during join

Visibility and successful gameplay traffic still depend on the UDP rule and host firewall. Recheck the destination address and protocol, then test with the server’s direct public address and port from outside the LAN. Do not add TCP rules unless the service in question actually uses TCP.

Home hosting versus another deployment

Port forwarding is attractive because you control the files and can install the mods you want, but it depends on a reachable home connection and leaves a service exposed from your network. If CGNAT, unreliable upload bandwidth, or double NAT prevents a stable setup, a rented server or relay can remove the inbound-connection requirement. The trade-offs are operational rather than a single universal price.

Consideration Hosting at home Rented server or relay
Inbound ports Requires a public IPv4 address, router forwarding, and firewall rules Usually handled by the provider or relay; useful behind CGNAT
Recurring cost No server-rental charge, but uses your existing connection and electricity Recurring charge; the applicable amount depends on the provider and plan
Mods and files Direct control of server files and configuration Control depends on the service’s access and policies
Bandwidth and latency Limited by your home’s upload capacity, ISP routing, and local congestion Depends on the facility or relay location and its network capacity
Maintenance and exposure You patch the server, secure RCON, and expose an entry point from your home network The provider handles some infrastructure, while you still maintain the game server and account security

Choose home hosting when you can obtain a public IPv4 address and are comfortable maintaining the firewall and server. Choose an external option when the ISP uses CGNAT, the home upload connection is unsuitable, or keeping game traffic away from the home network is more important than local control.

Final pre-launch checklist

  • SteamCMD installed or updated Garry’s Mod dedicated-server app ID 4020.
  • The server starts with the intended map, player limit, and explicit port if one was chosen.
  • The server computer has a DHCP reservation or another stable private IPv4 address.
  • The router forwards the gameplay port to that address using UDP.
  • TCP is forwarded only when the default RCON service is intentionally enabled.
  • The host firewall allows the matching protocol and port.
  • The router WAN address is publicly reachable and is not private or in 100.64.0.0/10.
  • Any second router is configured at both NAT layers, or the outer gateway is bridged.
  • An external player has tested the public address while the server is running.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.