Solved

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

Posted on 2013-06-14
4
716 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
ID: 39247927
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
ID: 39247928
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
ID: 39247972
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
ID: 39265063
tx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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)
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.

911 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

23 Experts available now in Live!

Get 1:1 Help Now