V
V
velikan52014-09-16 00:01:59
Computer networks
velikan5, 2014-09-16 00:01:59

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

2 answer(s)
U
UbuRus, 2014-09-17
@UbuRus

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.

V
velikan5, 2014-09-17
@velikan5

@UbuRus , thanks for the reply!
that's the thing, how to understand what ip the server and client have, if for example they each sit at their own specific NAT?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question