Find out the IP address associated with the MAC address in the web servlet application

I am trying to find the IP address associated with a MAC address in servlet programming. Is it possible?

I have a MAC address. Using MAC address, how to find the IP address?

+3


source to share


2 answers


Once you are in Servlet

, you can get the client's IP address with request.getRemoteAddr()

, and since it seems like you already have a Mac address ... that's it.



As simple as if the Mac address you have is actually the client making the request (which is not entirely clear in your question).

+1


source


The MAC address does not have a unique IP address, only one MAC address per subnet appears. So your question really doesn't make sense.



It also begs the question of how you get that MAC address in the first place, and why and what you intend to use it for. You should understand that MAC addresses can be changed by the user or his network administrator and cannot be used as unique system identifiers.

0


source







All Articles