Control host / port vars with params

Signed-off-by: Piotr Bocheński <bochenski.piotr@gmail.com>