Duplicate IP message fix

Last version didn't even compile, sorry for that