Setting port properly