Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having a one scenario,

I have Wifi environment which is using to connect computer for internet sharing.

The Router is having USB port, i have connect the USB drive and share the data across to all computer.

Its sharing data perfectly through IP address. Means i have to pass the IP address to the share folder name like ("").

My Question is: Can we define the name of this IP address so any one can easily use the name not a IP address? This is a Router IP address,

Help will much appreciated.

share|improve this question
Which platform is this? With Windows and others you can add entries in to your host file to map a name to an IP address. – Lee Taylor Nov 27 '12 at 18:44

Add an entry to your hosts file (at c:\windows\system32\drivers\etc\HOSTS on Windows) to tell your system the IP address of your router. For example:   router

If you're on something other than Windows, Wikipedia has a table telling the hosts file location on all the usual suspect operating systems. For example, on Mac OS X 10.2 and newer, the hosts file is at /etc/hosts, which is a symbolic link to /private/etc/hosts.

share|improve this answer
Nicole->I think, for implementing this way, first, we have to define the host name to router then we can use, and another point, Is there any other way can use this without host entry. – Priyank Nov 27 '12 at 16:39
This creates the definition of that host name and this is how it's done. Choose any name you like. For example, in my own hosts file, I have entries for comcastgateway, router, officejet and appletv. Your system resolves names by consulting its hosts files first. If it doesn't find a matching entry there, it asks the DNS server. – Nicole Hamilton Nov 27 '12 at 16:45
How can we set this in MAC PC? – Priyank Nov 27 '12 at 16:57
I've revised my answer for Mac OS X and other operating systems. Hope this helps. – Nicole Hamilton Nov 27 '12 at 17:17
Yes, adding the same entry to every machine's hosts file is a pain. Your alternative would be to run your own DNS server on your network. But you'd need a pretty big network, e.g., a corporate intranet, to justify that. – Nicole Hamilton Nov 28 '12 at 21:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .