added hostname and portNo dialogbox