Maybe you were looking for...

Force Minecraft to use one outbound port to connect to my server

I have a Minecraft server running on a server. It runs on port 25565 and I can connect to it at home. At school, however (it's a boarding school), due to the p