How are you selecting a server? If you choose an explicit port the way you described, mIRC should be using it. The only time mIRC will select a port for you is if you don't choose one, like:

/server irc.server.com