adding variables for port and interface
fixing type in console log message that was using wrong interface