There is a server running on the computer:
ServerSocket serv = new ServerSocket(...); ... Socket s = serv.accept(); ...
A connection (socket) is established to it from a specific device. Is it possible in this case to find out the 16-digit ID of this device? Something like
mSocket.getDeviceID() . Maybe it can be figured out somehow through the IP address?
The device is an Android phone. We need his ID. Is it realistic to recognize him without holding the phone itself? The only thing that the phone does is send photos to the server in def. time.
Is it possible in this case to find out the 16-digit ID of this device?
of course not. arbitrary data (which includes some kind of "device identifier") can be transferred over the network from one computer to another only with the active participation of both parties.
that is, it is necessary to supplement both programs that carry out the communication you described with the required functionality – the ability to transmit and receive the information you need.