Decide between server and client