adding error message on wrong port connection