Bug: 872339

According to RFC3330, the loopback needs to be used. This patch fixes the problem.

@dmacvicar please take a look.