The default ports for GameMaker 8 range from 51268 to 51280, so those are the ones you'll typically want to forward on your router.
If you need to change the default port, the YoYo Games forums are very active and can walk you through the process. I'll admit I haven't built a multiplayer game myself, so I can't give firsthand tips, but the community is a great resource. Good luck!