The IP address used in the script is that of the Windows PC offering the network share. If the address of that PC is fixed then you can use the script even if the tablet's is obtained by DHCP. If the PC also has a dynamic address then you'll have to manually issue the mount command line using the current address. The thing is, we're not using full Samba here, so there is no Netbios name resolution that could abstract the IP address to a workgroup/domain name.