0

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 ("192.0.0.68/Docs").

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.

1
  • 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, 2012 at 18:44

1 Answer 1

6

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:

192.0.0.68   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.

7
  • 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. Nov 27, 2012 at 16:39
  • 2
    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. Nov 27, 2012 at 16:45
  • How can we set this in MAC PC? Nov 27, 2012 at 16:57
  • 1
    I've revised my answer for Mac OS X and other operating systems. Hope this helps. Nov 27, 2012 at 17:17
  • 2
    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. Nov 28, 2012 at 21:23

You must log in to answer this question.

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