Hi Odoe,
Thanks for your help. I have modified my code exactly as you suggested. However it has not fixed my problem.
In factI have just tried it on a collegue's computer in Chrome and it works there. So it has to be something to do with my computer in particular. The firewall settings hould be the same on both mine and his.
Bizarre!