maybe make the port a const variable, since you rely on the exact value in a couple places