Broken parsing of address fixed, previously it was always returning -1 for 'localhost:2181'