3

I need to use the custom url name which is able to access from all devices in LAN.

I know that it can be changed from the /etc/hosts file

127.0.0.1   myname
127.0.1.1   system09-System-Product-Name

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

While entering the myname hosts it is available to access myname/urlpath .

It is accessible only for my system.

How can i make this available to access from other system in LAN too ?

Update :

127.0.0.1   allau
192.168.1.16    sul
127.0.1.1   system09-System-Product-Name

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

1 Answers1

1

You should add :

Your Network Ip address          Name you want 

Example :

192.168.0.1      My_Pc

127.0.0.1 & 127.0.1.1 are loop-back Ip addresses .

To know your Ip address just type ifconfig in Terminal .

More help Question

nux
  • 38,017
  • 35
  • 118
  • 131