![]() |
| ||
| Viewing An IP Address in Command Prompt Hi! I was wondering if there's a way to view the IP address of a certain site through Command Prompt. Even better, maybe there's a way to access it through a c++ or java program! thanx. |
| ||
| Re: Viewing An IP Address in Command Prompt |
| ||
| Re: Viewing An IP Address in Command Prompt Quote:
|
| ||
| Re: Viewing An IP Address in Command Prompt 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. |
| ||
| Re: Viewing An IP Address in Command Prompt Quote:
You might also check out the "nslookup" command. |
| ||
| Re: Viewing An IP Address in Command Prompt thanx. one more question. is there a way to return the ip address to a java/c++ program? |
| ||
| Re: Viewing An IP Address in Command Prompt Quote:
InetAddress thisIp = 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();req is an HTTPServletRequest Object. |
| ||
| Re: Viewing An IP Address in Command Prompt Sorry, you might want to get it by the hostname: java.net.InetAddress inetAdd = |
| All times are GMT -4. The time now is 2:31 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC