Get port number in custom actions

Good afternoon!

I wanted to check if it is possible to obtain the port where our bot is listening, within the custom actions.

For example:

http://localhost:5055/webhook

You would need to obtain the port number that was accessed. In this case: 5055.

Thank you,

Yes. The port number exists in the request object. So you have to call your action beside the request body additionally with the port number.