mmm.. so I am not sure to understand here - why not set the stats_endpoint to the IP directly in the configuration ?