MITM changes

- Made ports configurable
- Added error message in case the port is already in use