use build_srvid instead of get_own_srvid;
removed get_net_from_ips and replaced it by assign_ips_to_nets;