added server and port getters on client, make sure to set initial value of callbacks to 0 in client