By Vivian / Last Updated December 3, 2021

What is port forwarding?

Have you heard about port forwarding and what does port forwarding do? Briefly, Port forwarding is an application of network address translation that allows a remote PC to connect to a PC on a private local area network(LAN), which makes it possible for those who have the need to remote access a PC over the internet with RDP. For example, if your friend needs to control your PC remotely, but you are not on the same LAN. Then he or she can port forward to create RDP.

What is Port Forwarding

Is port forwarding safe?

Many users are curious about the security of the port forwarding at the same time, worrying about the router will be accessed by the hacker and the specific external IP will be hacked. Is port forwarding dangerous? Actually, port forwarding is, for the most part, safe. The situation that your router permits outside machines to connect to a machine on your network is known as port forwarding. It doesn't provide you with any special access to the router's internals. And all it gives you is a link to your internal workstation, where you configure the router and feed it a certain port number.

Moreover, as long as your computer or network has a security firewall or a VPN connection, the entire operation of port forwarding is safe. And it relies on your network's security and the specific ports you're utilizing, so, port forwarding isn't that dangerous.

How to port forward?

Having realized what is port forward and how safe port forward is, it’s time to realize how to port forward.  

Preparation work:

1. Find the routers IP address (Default Gateway)

Step 1. Search CMD in the search box and then right-click and choose run as administrator.

Run as Administrator

Step 2. Type ipconfig and then locate the Default Gateway in the following picture and enter it into the browser.  

Default Gateway

2. Find the username and password

Method 1. Find the username and password behind the router.

Router Login

Method 2. Find the username and the password according to the following information.

Username and Password

Concrete steps for port forwarding

Step 1. Open a web browser. Then type your router’s IP address into the address bar. 

Step 2. A privacy warning will appear. Just click Advanced > Proceed to continue.

Proceed to Connect

Step 3. Next, enter your router’s username and password. 

H3C Router Login

Step 4. Click on Port Forwarding/Port Triggering on the left pane.  Create a new port forwarding rule and click Add, and choose Add Custom Service.

Add Custom Service

Step 5. In the Port Forwarding interface, give your device a name and enter the port number you wish to forward in the port field (if you're not sure which protocol to use, choose "TCP/UDP" or "Both" under Service Type).

Step 6. Then enter the internet IP address of the device you want to port forward, and then click Apply to save the changes.

Set Up Port Mapping

Step 7. Finally, save your settings.

Apply Port Forwarding

Remote access computer over internet without port forwarding

Is port forwarding safe? Absolutely! But aren’t you feel too complicated to port forwarding for remote access over Internet? And we may meet with all kinds of issues when we port forward like some users can’t log in to the router, some RDP errors appear after changing the port number, and so on. If the purpose of port forwarding is to connect remotely without being on the same LAN, then why not use a more useful and convenient remote access software-- AnyViewer.

AnyViewer actually realizes remote control anywhere, anytime, without being confined to remote access on the same LAN or finding the IP address and user name of the remote PC. Furthermore, on Windows 11/10/8.1/8/7 and Windows Server 2022/2019/2016/2012 R2, the fast connection speed, and techniques for attended and unattended access, respectively, can provide a novel experience.

Download Freeware Win 11/10/8.1/8/7/XP
Secure Download

Method 1. For the unattended access

Step 1. Download and install AnyViewer, and you can see the device ID and Settings on the main page.

Temporary Code

Step 2. Click on Settings on the host PC, and then select Recipient, choose the 3rd option “Set my security code”, type the security code, finally click on “OK”. Return to the main interface.

Accept Remote Control

Step 3. On the client PC, enter the device of the host PC, and then connect. For the pop-up window, choose “Input my security code”, input the security code and then click on OK. Then the connection is successful.

Security Code

Method 2. For the attended access

Step 1. On the client PC, enter the device ID, and then click on “Connect.


Step 2. For the pop-up window on the client PC, choose the first option “Send a control request”.

Send A Request Control

Step 3. On the host PC, click on the green with the hook icon to receive permission. After clicking, the connection can be started.

Request to Control Your Device


Is port forwarding safe? From the post, I believe you have known the answer is safe. But after viewing the operation of AnyViewer, don’t you think it’s easier than RDP which needs to port forward if two PCs are without the same LAN? If you think so, try AnyViewer!