How to change the winbox loging port

If I change the default winbox port og 8291 to different port, how can I change in winbox software to change the same to get secure login

Very simple. In Winbox:

/ip → services, click on “Winbox”, and set port you want.
Here you can also change SSH port etc.

In the Winbox connection setup window, you simply add :your-new-port after the IP address.