setting correct port