I am using a java program on Lubuntu which backs up my windows computer through Wi-Fi LAN. I need to access to his windows shared folder but with PC-NAME, not with IP Address. How can I do that?
I am using cifs utils to achieve that and for permanent mount it is in /etc/fstab:
//PCName/ShareF /media/PCName/ShareF cifs credentials=/home/user/.myrcre
But I get this error:
mount error: could not resolve address for PCName: Unknown error
I need to access the windows PC through its name, not ip address, because I dont want to set the static ip, and because of that, the IP address changes sometimes. I need it mounted permanently, no matter if server or client is shuted down.
Maybe, it is here some another possibility, e.g. java code could obtain IP address from PCName, but I dont know why. Cant find anything.
Thank you for any answer.