Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Access WAMP Server from another machine by hostname (8 replies)

$
0
0
I am trying to figure out if this is even possible...

Here is what I have: 2 machines with host name computer1 and computer2 connected on an home wifi network I do not have access to the wifi router configuration, I assume it has some sort of DHCP which assign the ip address dynamically.

On computer1 I have installed Wamp 3 and I have a test static website (and a worpress website) with related virtual hosts.

On computer1 I can easily view the websites in this way:

1) ht_tp://localhost or ht_tp://computer1 or ht_tp://192.168.1.2 --Wamp home page
2) ht_tp://localhost/staticWebsite or ht_tp://computer1/staticWebsite or ht_tp://192.168.1.2/staticWebsite or even ht_tp://staticWebsite --Static website
3) ht_tp://localhost/wpWebsite or ht_tp://computer1/wpWebsite or ht_tp://192.168.1.2/wpWebsite or even ht_tp://wpWebsite --Wordpress website

From the other machine I can correctly view them in this way:

1) ht_tp://192.168.1.2 --Wamp home page
2) ht_tp://192.168.1.2/staticWebsite --Static website
3) ht_tp://192.168.1.2/wpWebsite --Wordpress website

As the ip addess are dynamic I would love to be able, from computer2 to use the hostname, for example: ht_tp://computer1/staticWebsite... Modifing the hosts file wont help as they are dynamic...

I assume computer2 somehow resolve computer1 name because if I do \\computer1\ I can browse shared drives and folders...

Is it possible to access Wamp (Apache) server from another machine using host name?

Thanks, Simone

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>