The port is opened on the router where the Filemaker database is hosted.
The port may need to be opened on the Firewall at the hosting site, also.
http://portforward.com gives the instructions for many routers. Port 591 is recommended.
IWP threads on these forums - https://www.google.com/search?q=IWP+site%3Aforums.filemaker.com