How does Plex decide if a client is local or remote

Could anyone explain to me how Plex decides whether a Player is local or remote?

Ill have to check but I think if its on the same IP subnet its local if not its remote.

@nokdim is correct. Local = same subnet