Forums Drupal

Access Drupal stack on Mac via external pc on local network

Subscribe to Access Drupal stack on Mac via external pc on local network 7 post(s), 2 voice(s)

 
Avatar Gerben 16 post(s)

Hello,

I have a Drupal stack on my Macbook and wonder how it can be accessed by another pc on our local network? I have the webserver switched on and the stack running on http://mymacbook.local:8080/drupal.

Any help appreciated,
thanks,
Gerben

 
Avatar antonio Administrator 453 post(s)

Hi,

You will need to connect to the local network IP of your Macbook. To find it out, type

ifconfig

in the Terminal.

Cheers

 
Avatar Gerben 16 post(s)

Hi,

Thanks! But if I do that I still cannot access the stack. Should I use this: http://localnetworkIP/drupal ? Or something else?
I can get access to the webserver but connectong through to Drupal is the problem. Or should I put the stack in my /username/website folder?

Gerben

 
Avatar antonio Administrator 453 post(s)

Yes, that’s it. Do you have any firewall enabled?

 
Avatar Gerben 16 post(s)

Yes but webserver is allowed and i just disabled to test, no difference.
To be clear: I have the stack in my applications folder at the moment.

Gerben

 
Avatar antonio Administrator 453 post(s)

Mmmmm, what port is Apache using? You can find it out under the directive Listen in the file httpd.conf

EDIT: I just saw it in your first post. Apache is using the port 8080, which is not the default webserver port (but 80). So, you may need to tweak the firewall a little bit more. To be sure, try to install the stack as the Administrator and it will be installed in port 80.

EDIT2: If you disabled the firewall, to access from other computer you will need to type http://localnetworkIP:8080/drupal

 
Avatar Gerben 16 post(s)

Ah bingo! Thanks! It was a combination of typing the address with the corredt port and disabling the firewal.

Thanks for the quick help,
Gerben

Forums Drupal