# Mikrotik Port Service API 8728 - MikroTik Script RouterOS

    Application Programmable Interface (API), a service that allows users to create custom software or applications that communicate with the router, for example to retrieve information on the router, or even configure the router. Using port 8728. This API port is often attacked using BRUTE FORCE, you can change the port or disable it when not in use.

    # API Port Enable
    /ip service set api port=8728 address=0.0.0.0/0 disabled=no
    # API Port Disable
    /ip service set api port=8728 address=0.0.0.0/0 disabled=yes
    Credit: mikrotik.co.id