make port used for socket connection configurable