Hi!

When your computer communicates using TCP, it opens a random port (unless you're binding and listening for incoming connections like a server).
mIRC doesn't open a specific port to send data, it's the OS itself.
Try using: netstat -a in a cmd.exe window.