So far I haven't been able to reproduce the ports issue, using the same networks that you listed. I tried connecting by clicking on the Connect button in the Options dialog and disconnecting via the Toolbar disconnect button. The correct port range was always used for the connection. I also tried creating two new servers, using a single different port for each, and was unable to reproduce the issue. If you test this with a clean install of mIRC, does it still happen?