Solved

How to get the Ip and gateway and mac address of the machine the user is working.

Posted on 2013-06-14
4
700 Views
Last Modified: 2013-06-20
How to get the IP address/ MAC address and gateway of the machine.
0
Comment
Question by:searchsanjaysharma
4 Comments
 
LVL 2

Expert Comment

by:Pat-XP
Comment Utility
Hi searchsanjaysharma,

Open up a command prompt,
Start,
Run,
CMD

Type in, ipconfig /all

All the information will show up in the results.

http://www.net.tufts.edu/images/Image23.gif

Regards,
Pat
0
 
LVL 31

Expert Comment

by:farzanj
Comment Utility
What machine?  Linux?  Using Java?

In Linux you can issue command
ifconfig
OR
ip a

This shows you the information you requested.

For Windows try
ipconfig
on DOS prompt
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
Comment Utility
How to get the IP address/ MAC address and gateway of the machine.
How would that help you? The ip address will be private (and therefore useless outside the lan). The mac address is also (normally) useless outside the lan. You can get the public facing ip of the gateway by doing

http://technojeeves.com/joomla/index.php/free/88-what-is-my-ip-java
0
 

Author Closing Comment

by:searchsanjaysharma
Comment Utility
tx
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now