1. Below is the error screenshot while opening port on gateway
2. This happens as you have not enabled any 'features' for the port, for example 'Published Service Message Input'. You need to specify a feature that will be used for this port and then you will be able to save the new listen port definition.