illegal port command

When I try to access ftp, the procedure ends with the following message:
---------
200 Type set to A.
PASV
227 Entering Passive Mod (212,15,64,96,133,62)
Opening data connection IP: 212.15.64.96 PORT: 34110.
The operation completed successfully.
PORT 192,168,10,50,4,145
500 Illegal PORT command.
PORT 192,168,10,50,4,142
500 Illegal PORT command.
---------

Someone from my server advised me to turn passive mode to off but
this future turns always to on when trying to access ftp.
What is wrong? Can someone please help me?
Thank you,
Paul