PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, September 20, 2022

[FIXED] how to set an ip range for a virtualhost in host file

 September 20, 2022     apache, virtualhost, wampserver, windows     No comments   

Issue

I want to let another person on my LAN see my Virtual host. I took some steps and now he can see my localhost when he enters my IP as an URL in browser. he couldn't see my virtualhost (shop.test) yet. so I edited his host file. I added my IP(192.168.1.3) tab shop.test. now he is able to see my vhost too. but there is a problem. my IP is Dynamic and for some reasons it should be this way. how can I use a range IP for shop.test in host file? or is there any other way for the purpose?
and what is the meaning of ::1 localhost in host file?


Solution

::1 localhost in your HOSTS file is the equivalent of 127.0.0.1 localhost but for the IPV6 address range. It is the loopback address for IPV6 like 127.0.0.1 is.

Modern browser will likely as not attempt to use the IPV6 range by default is they can

The PC running WAMPServer should be configured to use a static IP Address. Obviously it should not move or as you see it makes it difficult for other users to find it.

See this site for instructions on how to configure your PC with a static IP Address



Answered By - RiggsFolly
Answer Checked By - David Marino (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing