Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

Remote access to WAMP / WordPress

Create a wordpress with WAMP installed on my workstation. Everything works fine.

How to grant any workstations in my LAN to test the website ? Currently, users access my wordpress get a errror

You don't have permission to access /xxxx on this server.

Thx
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Can they access anything else on your WAMP server?
Avatar of AXISHK
AXISHK

ASKER

Only on my workstation, not on other workstations,

Thx
Avatar of AXISHK

ASKER

On a remote workstation  "http://mis-pc1/mywebsite", the browser return http://localhost/mywebsite and that's why my remote workstation can't access the website.


Any idea ?

Thx
Try using the IP address of the machine.
Avatar of AXISHK

ASKER

Same, it changes to localhost directly.

I wonder whether there is some setting in WordPress that need to change, as I change my wordpress project....

Thx
I'm pretty sure that somewhere you set 'localhost' as the domain or web site name for your Wordpress installation.  You'll have to find that and change it.
can you explain a little more please.  when you say  "my remote workstation can't access the website"  is that workstation on the same LAN or really remote and outside the building?

can other computers on the LAN see any folders on the  computer that has the website?
have you tried disabling your machines Firewall?
its not a Wordpress problem  its either a firewall or a file permissions problem.

when another computer on the LAN enters the ip address in the address bar of a browser say "HTTP://192.168.1.65/mysite"   in the address bar of Chrome you need the folder name of where the website is  in this example its called mysite.  and   the ip is  the machine running your wamp  

what happens??
ASKER CERTIFIED SOLUTION
Avatar of Mustafa bezi
Mustafa bezi
Flag of Syrian Arab Republic image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
if the website works locally then don't change any of the settings.  the way WordPress communicates to the database and itself  - if that works then its nothing to do with people accessing the website remotely.

it could be a hosts file on each machine or as I mentioned the firewall on the Wamp machine
Avatar of AXISHK

ASKER

Here is the testing result on a remote workstations. They are on the same LAN as my computer. Thx

1. http://192.168.2.224  - can accesss wamp info
2. http://192.168.224/mysite - return error and I find the address change to http://localhost/mysite.  

the url "mysite" is my wordpress project.

Thx
pic1.png
pic2.png
when they use    

 http://192.168.2.224

get them to then click on the link  "xinming"  under the word   "Projects"  this is where your website is.
Avatar of AXISHK

ASKER

Attach the result on remote workstation. It doesn't work.

If I manually type http://[my ip]/xin, it will return to localhost/xin.  - that's why remote workstation can't connect. I have no idea where I can fix it.

Thx
test1.png
test2.png
sounds like a problem with your WAMP installation.

try going over these tutorials to see what can be changed.

How to install wordpress locally with wamp :

https://www.youtube.com/watch?v=MHMV6tUuadA

http://www.wpbeginner.com/wp-tutorials/how-to-install-wordpress-on-your-windows-computer-using-wamp/
Mustafa bezi is probably on the money. Change your WordPress settings to your IP address instead of localhost, otherwise WordPress will include "localhost" in every url on the menu.
Avatar of AXISHK

ASKER

Try to setup WordPress again but it doesn't allow me to either put hostname or ip address. Only localhost is accept to proceed the setup further.

Any idea ??

Thx again.
Wordpess1.png
WordPress2.png
Wordpress3.png
Wordpress4.png
Hi Bro,

Not in setup - look in settings, something like http://localhost/wp-admin/options-general.php

Change WordPress Address and Site Address.
Avatar of AXISHK

ASKER

Remote workstations can now access my PC without changing to localhost. However. all the page and layout is distorted.....
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AXISHK

ASKER

Thx