The short answer is read the manual for your modem.

You will need to post more information here for someone to help you but with GUI based configuration options it is very hard to describe how to do this on a forum.

The basic concept on all router is the same, for each port you put in the IP address of the internal machine.

Note some ISP do not allow you to have some ports open on a home machine.