Can't hook browser using html script - BeEF


I installed Beef (version alpha pre) and have it running.

When I call “
this does work. I see the hooked browser in BeEF UI.

I put this code in my /var/www/html/index.html:

I have the webserver running:
sudo service apache2 start

I can call the web page. I see the “Hi!”

But I can’t see the hooked browser in my

Nor in my kali machine, nor in my windows VM on the same network.

What am I missing?