I have a path windows network shared drive like this .
String url="//sample/data/Documents/network/test/";
How can i find the Ip address of the that drive using this path using a java program or cmd prompt?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Although @Greg is right I think in most cases you can extract the host name from the URL and then use
InetAddress.getByName(), i.e. something like the following