| | |
Viewing An IP Address in Command Prompt
![]() |
•
•
•
•
Originally Posted by C++
server_crash, thanx but i already know that. I wanted 2 make a program that tells u the ip address of the inputted domain name.
thanx anyway.
You might also check out the "nslookup" command.
"May the Wombat of Happiness snuffle through your underbrush."
- Ancient Aborigine blessing
Please do not contact me by email or PM for help. We're all volunteers here, and only have so much free time to dedicate to our efforts.
However, if I've been working on a thread with you already, and seem to have "forgotten" your thread, please do send me a message. I try not to let things slip through the cracks, but it does happen sometimes.
- Ancient Aborigine blessing
Please do not contact me by email or PM for help. We're all volunteers here, and only have so much free time to dedicate to our efforts.
However, if I've been working on a thread with you already, and seem to have "forgotten" your thread, please do send me a message. I try not to let things slip through the cracks, but it does happen sometimes.
•
•
Join Date: Jun 2004
Posts: 2,108
Reputation:
Solved Threads: 18
•
•
•
•
Originally Posted by C++
thanx. one more question. is there a way to return the ip address to a java/c++ program?
InetAddress thisIp =
InetAddress.getLocalHost();
System.out.println("IP:"+thisIp.getHostAddress());Remember to include that in a try catch clause, as that code could potentially cause an exception.
Also, writting a simple servlet would be easier:
String IP = req.getRemoteAddr();
![]() |
Similar Threads
- Command Prompt (Windows Software)
- Change background color of command prompt (Windows tips 'n' tweaks)
Other Threads in the Windows NT / 2000 / XP Forum
- Previous Thread: How to enable auto logon function
- Next Thread: I can connect to the net but cannot open sites or messengers
| Thread Tools | Search this Thread |
.net 3.5 3daccelertion 2007 2010 alaris apache application appstore arm auto automatically black blue book boot cellphones collaboration computer computerfreezes crash deployment desktop desktops dns domain dotnetnuke drive error errors explorer features firefox folder fontmanagers fonts format framework gadgets install intel interoperability killprocess laptop latitude linux load login mac microsoft minimalizes mobile monitor netbooks novell nvidia open operatingsystems osinstallationproblem osx outlook partition patch port product proxy raid rds remotedesktop remotedesktopconnection repair replacingraiddrive screen server. simplifiedchinese sp1 ubuntu unreadable update usb verizon videodrivers videogames virtual virus vista visual vulnerability wab webos weecam win win32/heur window windows windows7 windowsxp windowsxpnotstartingup. worm xp






