Can't hook browser using html script - BeEF

Hi,

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

When I call “http://10.0.2.4:3000/demos/basic.html
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
http://10.0.2.4:3000/ui/panel

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

What am I missing?