Set port in main