| | |
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 a.exe alaris apache application appstore arm auto black blue book cellphones chinese collaboration computer computerfreezes crash cursor deployment desktop desktops dns domain dotnetnuke drive eartlink error errors features folder fontmanagers fonts format framework gadgets intel interoperability killprocess laptop laptops latitude linux load login mac microsoft mobile monitor motionle1600 netbooks novell nvidia operatingsystems osinstallationproblem osx outlook palm partition patch printer product proxy raid rds remotedesktop remotedesktopconnection replacingraiddrive retrieve screen server. simplifiedchinese sp1 ubuntu unreadable update usb verizon videodrivers videogames virtual virus vista visual vulnerability wab webos weecam win win32/heur windows windows7 windowsxp windowsxpnotstartingup. worm xp xpde






