add port option for server example