Set port from terminal.