set proper prot and ip address