Answer the question
In order to leave comments, you need to log in
Authorization using the client application
The task was to implement authorization on the site through a special key, this is a text file with a specific key. We decided to write a client application that would be installed on the user's machine and listen to some port during authorization, the server would send a request to this application, it would simply take the key on the user's machine and send it in response. It is desirable to implement all this in c#. In this case, there should be no problems with NATs! can anyone come across what you advise?
Answer the question
In order to leave comments, you need to log in
Why shouldn't the application register itself on the server at startup?...
You can do hole punching .
Key exchange - Diffie-Hellman.
Encryption - AES or Blowfish.
There may be several keys on one machine, so the problem may arise. The idea is that the application should always hang in the background, and even better if as a service.
In order not to produce a topic, I'll ask here. If I start listening to a port in the console application, the firewall asks if you trust it, and if you do, then the port and the machine can be accessed via the Internet. But if the port is opened in the service, then this port is only open locally and cannot be accessed via the Internet unless the firewall is turned off. What can be done?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question