parse hostname v4 and connect

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>