Allow use valid ipv4 address in connection url

Using ipv4 address in connection string is valid
(eg.: 'mongodb://127.0.0.1:27017)