To enable Local Network access for an app on your iPhone:
This lets that app discover and communicate with devices on your Wi-Fi network, such as TVs, speakers, printers, or smart-home devices.
If the app doesn’t appear under Local Network, open the app and use the feature that needs nearby-device/network access. iOS should then prompt you to Allow local network access.