Yes both devices needs to be on the same network but internet is not required. Firewalls with restrictions on local IPs, although rare can be a problem, in that case we can use services like ngrok but it's less ideal for normal users to setup.

1 Like