added interface variable to fix ipv4 errors

This PR adds a variable to specify the interface to poison and fixes the no IPv4 address errors