server side connection computation