Remote client host register fix

Fix for issue #19. Same fix as issue #30 but without the messy whitespace lines in the diff