API: local server is not necessarily 127.0.0.1

Modification proposed by Rick Jongbloed

see here: https://github.com/emoncms/raspberrypi/issues/14#issuecomment-15605039