Set port in config. Display an error message if
config is not set.