localhost from another computer on network
Posted by: dennis48755 (---.hsd1.mi.comcast.net)
Date: November 20, 2022 08:31PM

Hello,

I have WampServer installed and running great with virtual hosts and databases.

Windows 11 64 bit
WampServer 3.2.7 - 64bit
WampServer icon is green

I have installed a new Windows 11 computer to become my primary computer for Dreamweaver on the same network as the computer running WampServer.

I really prefer not to move WampServer from computer to computer. Is there a way to configure the new computer to use the existing WampServer computer as its localhost?

Thanks,
Dennis

Some added info...

My Virtual Hosts are listed and accessible by the WampServer localhost page.

I tried the suggestions given here; [stackoverflow.com]
But I get a 403 forbidden error from the additional computer.



Edited 1 time(s). Last edit at 11/20/2022 10:14PM by dennis48755.

Options: ReplyQuote
Re: localhost from another computer on network
Posted by: Otomatic (Moderator)
Date: November 21, 2022 08:46AM

Hi,

To access to Wampserver from another computer, it is not possible.

To access your VirtualHost from another computer, it is possible.

You have to modify the VirtualHost Require to allow an access other than local, for example from the LAN IP.

See Require

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: localhost from another computer on network
Posted by: dennis48755 (---.hsd1.mi.comcast.net)
Date: November 21, 2022 08:20PM

Thank you Otomatic,

That was indeed my problem.

I replaced "Require local" with "Require all granted".

After that appeared to work I tried "Require ip 192.168.92.0/24". That also worked so I left it at that.

Thanks again,
Dennis



Edited 2 time(s). Last edit at 12/01/2022 12:45AM by dennis48755.

Options: ReplyQuote
Re: localhost from another computer on network
Posted by: dennis48755 (---.hsd1.mi.comcast.net)
Date: December 01, 2022 12:21AM

Hi,

I have another question, this time regarding a MySQL database running under the above WampServer.

To access the database from the computer running WampServer, I configure the database application with a Host Address: localhost.

What Host Address would I use in the database application on the other computer?

Note; I have this in my Windows Host file "192.168.92.7 Desktop-7" and this is the computer running WampServer.

Thanks
Dennis

Additionally, when I use Host Address: 192.168.92.7 I get error 1130 ... not allowed to connect to this MySQL server.



Edited 1 time(s). Last edit at 12/01/2022 12:45AM by dennis48755.

Options: ReplyQuote
Re: localhost from another computer on network
Posted by: Otomatic (Moderator)
Date: December 01, 2022 08:43AM

Hi,

See item 11 of Wampserver 3 - Some explanations

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: localhost from another computer on network
Posted by: dennis48755 (---.hsd1.mi.comcast.net)
Date: December 02, 2022 12:16AM

Hi Otomatic,

Thanks for the reference.

Sadly my MySQl skills have not reached the point of using the console. After logging in as root (no password) I entered "create user dennis@192.168.92.%" but still got the not allowed error.

The good news is that I found that my favorite MySQL tool (SQLyog) includes a user manager tool and I was able to create dennis@192.168.92.% with it and it worked fine. I was able to access the database from the additional computer.

Thanks again,
Dennis

Options: ReplyQuote


Sorry, only registered users may post in this forum.