I have acess to remote router via ssh, but I want to access via winbox but router refuses connection because there are some allowed addresses configured and I am not fron that range now.
/ip service
set [find name="winbox" !dynamic] address=<adresses here>
Recent versions of RouterOS include the dynamic entries of the services in the list for all current connections made to the services. Your command might catch a dynamic entry, and tries to change its address property, which is not allowed.
Modify the command to act only on entries without the D (dynamic) flag and it should work.