Setting up developer portals

Your problem lies here

Missed it in my delirium of jetlag yesterday. You need to tell Analytics to respect hostnames, because it will stop the IP form working, you need:

"host_config": {
    "enable_host_names": true,
     ...