Get server port inside java