Turning your firewall off is another task to do. aswell as allowing those specified ports, as I said. turning the firewall(s) off will allow full connection to the emulator.
Download visual studio, and upload your emulator file to it. From there, head on over to the "Phoenix" folder , HabboHotel , Misc , ChatCommandHandler.cs, and go from there. when you're done, just save/debug it, and you should be good.