| | |
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
Views: 11191 | Replies: 7
| Thread Tools | Search this Thread |
Tag cloud for Windows NT / 2000 / XP
.net 2010 a.exe address appstore arm audio black blue bluescreen book boot cellphones computer computerfreezes crash cursor deployment desktop dns dotnetnuke drive dual eartlink error errors explorer fax features folder fontmanagers framework gadgets hardware home install intel interoperability killprocess laptop laptops latitude lcd linux load login mac markshuttleworth memory microsoft minimalizes monitor motionle1600 netbooks novell operatingsystems oracle osx outlook palm partition patch port printer product proxy remotedesktop replacingraiddrive retail rootkit screen security sharepoint simplifiedchinese sitetositevpn sp3 spyware technology ubuntu uninstall unreadable update usb verizon videodrivers videogames virus vista visual vpn wab win win32/heur window windows windows7 windowsxp windowsxpnotstartingup. worm xp






