Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

java- ip address command


shadow31's Avatar
Member
0 0

I am in the process of learning java programming but am finding it hard to find new methods. Is there a method I can use to find the ip address of the computer The program is running on?


deadsun's Avatar
Member
0 0

I'm not expert on java, but i can tell u that (from what it sounds like you're trying to do) java is not the best language for you, java has very little direct computer interaction, but the good thing about it is that it is well documented on java.sun.com. Try this Google "java ip address" and see what comes up, i did just to see and i think it might steer u in the right direction. sorry i couldn't help more


ynori7's Avatar
Future Emperor of Earth
0 0

http://tinyurl.com/n4y4q5

Among that list is the java.net library (probably best), and executing ipconfig through cmd.


YouGina's Avatar
DeOnlyLimit=YourOwnImagination
5 0

Second result from the tinyurl gives a good example how to get an IP address easily.

Via ipconfig is a little bit cumbersome, I guess.