ip should not be str

but need to format packet as str