Answer the question
In order to leave comments, you need to log in
How to connect client and server not by IP address?
Hello!
There is a server application for Windows that performs certain actions on the user's computer.
And there is an iOS app that needs to send signals to the server app.
How to connect them like the scheme implemented in Team Viewer?
That is, in the server application, I generate a unique instance ID, and in the iOS application I specify this ID and send signals to the server application without specifying the IP/port.
Is it possible to do this somehow without a web service (it seems that a web service is used in the team viewer) or with a web service, but only to establish a connection between the client and the server so that messages are sent by them independently?
Thank you all in advance!
Answer the question
In order to leave comments, you need to log in
It is necessary to support a web service that will store the key-value: ID-IP. Or you can use DHT, but it depends on the specifics of the application and the number of users.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question