Make it possible to change port number

It's not possible to change the port number without rebuilding the
program. This is a bit inflexible. Add a text box where the port number
can be changed during run time.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>