Question

I have a TCP server software and accepting a client by

TcpClient NewClient = TCPListener.AcceptTcpClient();

line. Also i have a string list that holds safe client IP's. If an unknown client wants to enter the system, i reject it by

NewClient.Close();

line. This is not problem for static IP devices. Problem starts for mobile devices. A mobile device may have different IP's for each connection so i should check its imei number as soon as possible when i accept it. Is there any field that i can immidiately reach to check imei number? I also design mobile software so while i am connecting to server, i want to pass the imei number of phone by TcpClient class.

Is it possible?

Was it helpful?

Solution

Is there any field that i can immidiately reach to check imei number?

No. IMEI is not a concept which is part of TCP/IP at all. If you need to know the IMEI number, you'll need some other way of getting it. You haven't said anything about what's running on the client - if it's a custom app then you could potentially find out the IMEI in the app and include it in the data. Of course, any program can send any data, so you'd possibly want some way of signing or encrypting the IMEI so you knew you could trust it at the server side...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top