Better resolution of IPaddress for oo-mongo-setup script

IPSocket.getaddress(hostname) has potential to return IPv6 address which mongo does not understand.