Hello

I'm working under a MAC Notebook (OSX), and I connect to a remote NAS using the Finder. After its shared folder is mounted correctly. Let's call it "MYNASVOL".

I have no problem to access all files. For example

ls /VOLUMES/MYYNASVOL

shows all subdirectories and files.

My concern when developing my java program, is to verify that the mounted volume is the right one in case of different NAS servers have the same shared folder name, I'd like to do this by comparing IP addresses.

I looked at

InetAddress address = InetAddress.getByName(... );

but these servers have no DNS names. So, I need to retrieve the IP address from the Shared folder name and compare it to the one I'm expecting.

Is there a solution ?

Thanks for any suggestion

Gérard