server/: Introduce accessor functions for reading and writing port numbers.