Find API app automatically

Asked

Viewed 36 times

1

I have an application that requests a local API and I need to change the machine API because I can use multiple servers and they can have different Ips. I would like to have my app search the server on the network where it is automatically and establish the connection. I’m working with React Native + Nodejs. I am creating the application and would like to know if there is any established standard that could use to do this server location.

  • 1

    Are all servers on the same network? It is not possible to use a fixed IP server and redirect requests from it?

  • 1

    No. The servers are on different networks. The problem is that the solution will be used on different clients and each uses an IP for the server. From here I wanted to find a way not to have to manually put the server IP in the application but to search for a server. Something like a nickname or auto search.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.