1. See
License requirement (click on link) & check the options.
2. Configure your OSX firewall, & also enable UPnP on your modem/router by checking this page from top to bottom:
Connection problems? Check here first! (click on link)
BTW for OSX firewall if the listing isn't already there, you need to add it yourself "if" you use the OSX firewall!