how to find the device type whether is it a computer or mobile or router etc.,

i have under gone a project in that i have to know the device which use my lan ,this can have better use of my project ,instead my project is fully based on java code can any one help to find the device type in java code. i have ip address of all the system connected in my LAN with their mac address.


This is not a very easy and straight forward issues you are having. You'll have to come up with some basic idea based on the resources you have and the platform you wish to use, and then build around that idea. You can go through the links below. Basically, the links will take you to a "How to detect mobile devices" page and this can get you some basic idea about the method and procedures you'll have to take.

These links may help: Detecting mobile devices in a network

Detecting mobile devices in a network

1. You can do it in client side from userAgent String.

String userAgent=request.getHeader(“User-Agent”);
//Check it matches to respective user agents or not.


if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
 // some code..

See this : What is the best way to detect a mobile device in jQuery?

2. Free API are available here :

3. Here you can find different ways of doing it:

Need Your Help

Getting a binary search to work in Python

python string search binary-search

I am trying to get a binary search to work in Python. I have a massive, sorted list of passwords. The plan is to get a password input from the user and see if it is in the list. I've decided to imp...

Javascript new object (function ) vs inline invocation

javascript function private members

Is there any considerations to determine which is better practice for creating an object with private members?