get rid of unnecessary code to check packet

also, send ip, not int