How to Port Forward stardew valley
PUREVPNpfcgnatHow to Port Forward Stardew Valley

If you are playing Stardew Valley on a computer and want to be able to host a game or join someone else’s game from outside of your local network, you will need to port forward. The default port for Stardew Valley is 7777.

To port forward, you will need to set up a port forwarding rule on your router. Instructions for how to do this vary depending on your router, so you will need to check the documentation for your specific router. This guide explains how you can open ports for Stardew Valley. 

Requirements to port forward Stardew Valley

Just before you begin with the process of port forwarding, make sure you have the following things:

  • The IP address of your router.
  • The IP address of your gaming device.
  • TCP and UDP ports of Lineage Ii for your gaming device as mentioned in the section below.

Step-by-step guide on how to port forward Stardew Valley

Now that you have the above details noted down, you can move to the next stage of Lineage Ii port forwarding:

  1. On your web browser address bar, type your router’s IP Address/Default Gateway.
  2. Log in with your router’s credentials (username and password) to view your router’s firmware settings.
  3. Navigate to the port forwarding section of your router.
  4. Click on Port Forwarding.
  5. Enter the IP address of your gaming device in your router in the correct box.
  6. Put the TCP and UDP ports of the Lineage Ii server in the boxes in your router. The default Lineage Ii port number is 24642. 
  7. Click the apply button.
  8. Restart your router to let the changes take effect.

Stardew Valley ports needed to run 


UDP: 24642

PlayStation 4

  • TCP: 1935, 3478-3480
  • UDP: 3074, 3478-3479


  • TCP: 6667, 12400, 28910, 29900, 29901, 29920
  • UDP: 1-65535

Xbox One 

  • TCP: 3074
  • UDP: 88, 500, 3074, 3544, 4500


  • TCP: 27015-27030, 27036-27037
  • UDP: 4380, 24642, 27000-27031, 27036

Quickly and safely open ports 

Opening ports is simple with PureVPN port forwarding add-on. 

Open Ports Now

How to open ports behind CGNAT 

What if your ISP performs CGNAT? Most ISPs perform CGNAT (Carrier-grade Network Address Translation) to conserve bandwidth and assign a single IP address to multiple users connected to the same internet network. However, CGNAT makes it difficult for you to open ports on the router. 

To get around the CGNAT issue, you can use the Port Forwarding add-on to bypass this problem and port forward routers without hassle. 

Here’s more information on how to use PureVPN’s Port Forwarding add-on and bypass CGNAT in a few clicks.

Open Ports Behind CGNAT

PureVPN port forwarding add-on 

A secure way to open all ports

To most people, port forwarding is quite a demanding task. For starters, every router has a different console, which often makes it difficult to navigate to specific settings.

Secondly, you won’t always be able to open Lineage ports on your router if your ISP restricts the ports. Yes, you heard that right! ISPs are notorious for blocking ports due to security reasons. If ISP isn’t the reason behind a blocked port, then perhaps it could be your operating system’s firewall.

Well, you can eliminate all these problems and enjoy smooth online gaming on all your desired systems with PureVPN’s Port Forwarding add-on. Through the port forwarding add-on, you can allow all ports, disallow all ports, and allow specific ports.

Frequently asked questions

What’s the best port forwarding fix for multiplayer issues? 

If you’re experiencing multiplayer issues, your router’s port forwarding settings may need to be adjusted. To fix this, you’ll need to open the ports for your game on your router. The specific ports you’ll need to open will depend on the game you’re playing, so you’ll need to consult the game’s instructions or support website for more information.


Sameed Ajax


January 1, 2024


4 months ago

6-Feet Tall Tech writer.

Have Your Say!!

Join 3 million+ users to embrace internet freedom

Signup for PureVPN to get complete online security and privacy with a hidden IP address and encrypted internet traffic.