Access development server from another (local) computer

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Access development server from another (local) computer

Ken Hargy
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Access development server from another (local) computer

John Andersen
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

On Tuesday, 22 December 2015 12:39:13 UTC+2, Ken Hargy wrote:
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 <a href="http://localhost:8765" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8765\46sa\75D\46sntz\0751\46usg\75AFQjCNFCi0dxFHeEgeR9YAsA9D7b7jD53A&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8765\46sa\75D\46sntz\0751\46usg\75AFQjCNFCi0dxFHeEgeR9YAsA9D7b7jD53A&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Access development server from another (local) computer

Harold Putman
In reply to this post by Ken Hargy
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. 


On Tuesday, December 22, 2015 at 5:39:13 AM UTC-5, Ken Hargy wrote:
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 <a href="http://localhost:8765" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8765\46sa\75D\46sntz\0751\46usg\75AFQjCNFCi0dxFHeEgeR9YAsA9D7b7jD53A&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8765\46sa\75D\46sntz\0751\46usg\75AFQjCNFCi0dxFHeEgeR9YAsA9D7b7jD53A&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.