| | |
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 |
Tag cloud for Windows NT / 2000 / XP
.net 3.5 3daccelertion 2007 2010 activedirectory alaris android application audio auto automatically black blue book bulletin canonical cellphones chinese chkdsk collaboration computer crash deployments desktop domain dotnetnuke drive dual error errors explorer features folder fonts format hardware internet interoperability killprocess laptop laptops lcd linux load mac memory microsoft mobile monitor motionle1600 netbooks novell open operatingsystems oracle osinstallationproblem partition product proxy raid rds remotedesktopconnection repair retail retrieve rootkit screen security server. slowperformance sp1 sp3 spyware studios technology ubuntu uninstall update upgrade usb verizon videogames virtual virus vista visual volume wab webos weecam win win32/heur windows windows7 windowsxp windowsxpnotstartingup. worm xp xpde






