Discussion:
Access development server from another (local) computer
Ken Hargy
2015-12-18 02:41:39 UTC
Permalink
I'm new to CakePHP so maybe I'm missing something obvious... I set
everything up as expected and I ran:

bin/cake server

everything works fine if I go to http://localhost:8765, but I want to
access it on another computer on my local network. It seems like it's not
allowing connections other then localhost to port 8765.

Is there a setting for that somewhere?
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+***@googlegroups.com.
To post to this group, send email to cake-***@googlegroups.com.
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
John Andersen
2015-12-22 19:57:07 UTC
Permalink
That question is not really related to CakePHP.

Depending on your setup, you will have to open the firewall on the
computer, where you have your site running. You will probably also have to
configure your webserver (apache, nginx, etc.) to accept connections from
other IP addresses than localhost.

Tell what you have tried and how far you got :)
Enjoy, John
Post by Ken Hargy
I'm new to CakePHP so maybe I'm missing something obvious... I set
bin/cake server
everything works fine if I go to http://localhost:8765, but I want to
access it on another computer on my local network. It seems like it's not
allowing connections other then localhost to port 8765.
Is there a setting for that somewhere?
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+***@googlegroups.com.
To post to this group, send email to cake-***@googlegroups.com.
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Harold Putman
2015-12-23 13:21:27 UTC
Permalink
Use ngrok. https://ngrok.com/.
After you install it, you type `ngrok 8765` from a command prompt and it
will provide you with a URL you can use to access your Cake app from
another computer inside or outside your local network.
Post by Ken Hargy
I'm new to CakePHP so maybe I'm missing something obvious... I set
bin/cake server
everything works fine if I go to http://localhost:8765, but I want to
access it on another computer on my local network. It seems like it's not
allowing connections other then localhost to port 8765.
Is there a setting for that somewhere?
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+***@googlegroups.com.
To post to this group, send email to cake-***@googlegroups.com.
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Loading...