Local Net Ip Address from a Remote Client in java -


does know how local net ip address remote client in java?

thx

is looking for?

inetaddress addr = inetaddress.getlocalhost(); byte[] ipaddr = addr.getaddress(); // ip address string hostname = addr.gethostname(); // hostname 

that gets ip of machine code running on.


Comments

Popular posts from this blog

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

geospatial - MongoDB Bound Queries: How do I convert mile to radian? -