I'm trying to connect to a Windows Machine-hosted website on our network. Let's call the Windows machine server for ease.

I ran a script I made that returns machine name based on an ip address search.

(just to further clarify: nmblookup -A "$i")

Using that I tracked down the correct IP address for the machine and I can connect to it like this:


but it would be really handy to connect to it (like everyone else on the network who uses a Windows machine) by


How do I go about doing this?


Solved almost immediately, came to the quick realisation a host entry will solve this.

step 1:

$ sudo vim /etc/hosts

step 2:

192.168.1.XYZ    server

now I can access via server/site-name

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.