Improving net_connect

net_conect was changed to be also able to connect to IP-Addresses.
Furthermore net_connect now tries to connect all returned IPs and stops as soon as a connection was established.