Running RASA on a custom server

Hi I have a UI IM app that will interact with RASA using webhook. I have provided the webhook as http://randomhost:5005/webhooks/rest/webhook and also set the action endpoint as http://randomhost:5055/webhook

I don’t understand how to see if the webhook is working or not. Do I need to write a flask app to connect RASA to the custom webhook? Also how can I run RASA on that randomhost instead of localhost?

curl -s localhost:5005/webhooks/rest/webhook -d ‘{ “sender”: “Jhon”, “message”: “Hello”}’

i want to run it on some other host than localhost