How to Port Forward Modbus
PUREVPNpfcgnatHow to Port Forward Modbus

Port forwarding helps you access the client’s server behind the router or firewalls, NAT or CGNAT. You can open ports and control devices behind any router. This guide explains how to port forward Modbus.

Requirements to Port Forward Modbus

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

  • Downloaded and installed the Modbus server.
  • The IP address of your router.
  • IP address of your device.

TCP and UDP ports of Modbus are mentioned in the section below.

Step-by-step guide on how to port forward Modbus

Now that you have the above details noted down, you can move to the next stage of Modbus 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 device in your router in the correct box.
  6. Put the TCP and UDP ports of the Modbus server in the boxes in your router. The default Modbus port number is 502. And then click the apply button.
  7. And you’re done. Restart your router to let the changes take effect.
  8. Once your changes take effect, now you can host a Modbus server and let your friends connect to it as well. To let them connect to it, you need to provide them the hostname you are using, along with the port number. For example, ‘hostname.domain.com:25565’.

Modbus ports needed to run

The default Modbus ports are:

TCP Port:502
UDP Port:502

Quickly and safely open ports using PureVPN

Opening a port shouldn’t be complicated. With the Port Forwarding add-on, it’s as simple as 1, 2, and 3!

Ports to forward on devices

Ports to run on PC:

TCP Port:502
UDP Port:502

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’s 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 Modbus Online 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 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.

FAQ’s

What IP do I use for port forwarding?

To use port forwarding, you must first set a static internal IP address (ipv4) for your device. By default your device ipv4 address is automatically dynamic instead of static, meaning it constantly changes and port forwarding won’t be able to identify your device within your home network.

How is port forwarding working?

For connecting to the router, the destination sends a request with the router’s IP address and a specified port. The router then checks its NAT table for an open connection that matches this IP address/port combination. The request is passed along to the correct device on the internal network if there is such a connection.

Can I port forward with VPN?

VPN port forwarding enhances your internet speeds by rerouting data around your NAT firewall. Not only does this make downloads quicker, but it can also enable remote access to your computer.

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.