See previous comment on combining host/port. But the idiomatic API would be the main Register function anyway.