Webhooks as POST url (IP instead Domain), How to?

Hi!

For sending some commands to my home assistant, I am using webhooks… For turning on the light in the house, I just send POST request something like https://myhomeassistant.ro/api/webhook/light_on

What I want is to use the local IP instead of domain. How can I do that? If I put https://-- ip of ha : port/api/webhook/light_on, I get error.

I tried putting something in hosts, which points the IP, but it is irrelevant… And I still want to use webhooks, I find this very easy to use

Thanks in advance

Did you include the port?

I’ve got a few set up, and I can do stuff like

curl -d http://192.168.0.10:8123/api/webhook/MyFancyWebhook

without issue from a Windows PC (or the Python equivalent from a Pi).

I’m using HTTPS and for me it is still not working… I can’t send webhook with local IP instead external domain