Set client/server flag correctly for server