Solved

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

Posted on 2013-06-14
4
729 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jar file executable 12 52
why cannot we forward request once the response is committed 2 42
Maven Project: Hibernate Dependencies Conflict 10 22
ejb on wildfly 5 20
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

772 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