Use a different port. If you can't use a different port, say you have to connect to mIRC on port 123, then you have to use a different port to connect to a computer outside the firewall which can use port 123. SSH can be used for this. Google for "SSH tunnel".