How to Change MikroTik WinBox Port Number?

Learn how to change the default MikroTik WinBox port using Terminal or WinBox and allow connections through the new port in the firewall.
5 min read
Beginner
Change MikroTik WinBox Port Number

MikroTik RouterOS by default uses port 8291 for WinBox connections. You can change the default WinBox connection port to a custom number through WinBox or the Terminal.

When you buy MikroTik VPS, most providers give you admin access with the default WinBox port configured. However, you can change this port at any time. Using a custom port can help reduce automated connection attempts targeting the default port and give you more control over remote management access.

In this guide, you’ll learn how to change the WinBox port using the graphical interface in MikroTik WinBox or the command-line interface through SSH or direct console access.

Note:

All steps and instructions in this guide have been tested and verified by the VPSMakers technical team on a MikroTik VPS running RouterOS 7.25.1. The same configuration steps also apply to other RouterOS versions, including RouterOS 6 and RouterOS 7.

Change WinBox Port Using MikroTik WinBox

To start changing the port, connect to your MikroTik router with admin access, then follow the steps below to access the IP Services settings, update the port number, and apply the configurations.

Caution:

Before changing the WinBox port, make sure you have an alternative way to access your MikroTik VPS or physical router to avoid getting locked out. In IP > Services, make sure either WebFig (HTTP/HTTPS) or SSH is enabled so you can still access your router if the new WinBox port doesn’t work.

Navigate to IP Services

After connecting to your MikroTik, navigate to IP > Services by clicking on IP on the left sidebar and selecting Services from the dropdown.

Navigate to IP Services Setting in MikroTik Winbox

Change WinBox Port

Here, you’ll see a list of services running on your MikroTik router, including WinBox, FTP, WebFig, SSH, and others. Find the winbox service and double-click it to open its settings.

Here, you can change the port field value to your desired Port Number and click Apply, then click ok to save the changes.

change winbox port on MikroTIk

If you’re currently connected through WinBox, you may also see another entry named winbox with the D (Dynamic) flag next to it. This entry represents your active connection. You can double-click it to view your current connection details.

Important:

Changing the WinBox port does not normally terminate your current session. However, make sure to update your firewall rules before disconnecting. If the new port is blocked by the MikroTik firewall, you may lose remote access to your MikroTik VPS.

Update MikroTik Firewall Rules

To make sure the new port connection is open through the MikroTik firewall, go to IP > Firewall and create a new rule to allow the desired port.

Add Filter Rule in MikroTIk Firewall

In the Chain field, select input. Then, set the protocol to tcp and enter your new WinBox port in the Dst. Port field. Click Apply, then navigate to the Action tab and set the action to accept. Finally, click Apply and then OK to save the firewall rule.

Input Filter Rule for Winbox Port on MikroTik

Set the action to accept and save.

Set Firewall Rule to accept in MikroTik

You can now connect to your MikroTik router using the new port number. See the Connect to MikroTik Using the New WinBox Port section below for step-by-step instructions.

Change WinBox Port Using Terminal

You can change the default WinBox port directly from the MikroTik Terminal using a simple command. By default, WinBox uses port 8291, but you can change it to another port to customize how you connect to your MikroTik router.

Connect to your MikroTik using SSH, access the RouterOS console directly, or open a new terminal in WinBox and follow the steps below to change your WinBox port.

Identify the Current WinBox Port Using CLI

Use the command below to list the IP services and identify the current WinBox port; after changing it, you can block the port in the MikroTik Firewall to drop connections to it.

/ip service print

Change WinBox Port

After identifying your current WinBox port, you can use the command below, replacing 1234 with your desired port, then run it to change your WinBox port. After this, you need to create a firewall rule to ensure incoming connections are accepted.

/ip service set winbox port=1234

Run the command we used earlier to check the WinBox port and verify that it has been changed to the new port number.

/ip service print

Allow WinBox New Port From Firewall With CLI

After changing the port, keep your current WinBox session open and do not terminate the connection. First, allow access through the new port in the MikroTik firewall by running the command below. Replace 1234 with your new port number.

/ip firewall filter add chain=input protocol=tcp dst-port=1234 action=accept comment="Allow WinBox Custom Port"

Connect to MikroTik Using the New WinBox Port

After changing your WinBox port and adding a firewall rule to allow connections through it, close your current WinBox session and reopen WinBox.

In the Connect To field, enter your VPS IP address followed by a colon (:) and the new port number, like this: 192.168.1.100:1234. Enter your password and click Connect to access your MikroTik router using the new port.

Connect MikroTik With Custom Port

Summary

Changing the MikroTik WinBox port is straightforward. You only need to navigate to IP > Services, change the WinBox port number, and allow incoming connections through the new port in the firewall. However, before making any changes, make sure you have an alternative way to access your MikroTik router to avoid getting locked out.

In this guide, we’ve covered how to change the WinBox port and allow connections through the new port using both the Terminal (CLI) and WinBox graphical interface. You can follow whichever method you’re more comfortable with to update your WinBox port.

Share:

Was this article helpful?

Your feedback helps us improve our technical guides.

Related Posts

You May Also Like

Explore more tutorials, guides, or documentation, from VPSMakers.

Learn how to easily update MikroTik router firmware manually using winbox and CLI. Stay up to date with the latest updates!
Jacob Rafet
November 24, 2026
default RDP port is (3389) and to increase the security of all Windows Server 2012, 2016, 2019 and 2022, you can change it with registry editor and PowerShell.
Robert Smith
November 23, 2026
Learn how to change the default MikroTik WinBox port using Terminal or WinBox and allow connections through the new port in the firewall.
Jacob Rafet
November 22, 2026
Learn how to extract regular, multi-part, and password-protected RAR files on Ubuntu VPS using command-line and graphical tools.
Richard Mourar
November 21, 2026