Trying to get HA vm to talk to server apcupsd

Been trying for several hours to get this to work.
On my server I have apcupsd working, its got netserver on, it set to 0.0.0.0 to allow all connections.
In HA, a vm inside of the server, Ive tried the apc integration, but I keep getting error failed to connect, Ive tried the ip of the server, its hostname and with and without http:// before. The port is correct as it is the default one in apcupsd config.
Dont really know how to get them to talk to each other so I can monitor the load, voltages and battery charge from the dashboard on HA.

Anyone know how to make it work or has any tips?

Thanks