Hello,
I apologize prematurely if my query is a bit unclear; I am pretty new to community administration. Here is my state of affairs:
I’ve a FastAPI server operating on a Linux system and a React Native software on an Android cell system, each working on the identical community. My aim is for the shopper to robotically uncover the FastAPI server’s deal with and ship HTTP requests to it. Importantly, each the shopper and server are recognized by the identical distinctive ID (UID).
The problem lies in the truth that I do not management the community, which is ready up by the client. I’ve no info on their community topology, firewall guidelines, or different configurations. This makes it tough to make sure that the shopper can at all times uncover the server.
I attempted utilizing Zeroconf to resolve this. When the UDP port 5353 is open, and each units are set for mDNS and positioned on the identical subnet, it really works completely. Nevertheless, it fails if the units are on completely different subnets, akin to 192.168.1.x and 192.168.88.x.
Given these uncertainties concerning the buyer’s community setup, I’ve a number of questions:
One answer I am contemplating is to create a central listing server. I might ask the client to order a selected port for this goal. Each the shopper and the server would then talk with this central server utilizing their shared UID to register and uncover one another. Once more, I am unsure what community or firewall settings would have to be in place for this answer to work.
Thanks in your help!