4

I'm running the PHP 5.4 built-in web server on my desktop PC. I can access my webpage on that same PC, but I was hoping I could access the page on my tablet as well.

Is there any way I can open it up so I can access my page anywhere on my home network?

1
  • you can port forward and use your external IP address, although this seems a little extreme for a home network Commented Nov 23, 2013 at 21:25

1 Answer 1

3

According to this answer you should be able to make PHP listen on all interfaces using a command-line parameter :

For Windows :

C:/php/php.exe -S 0.0.0.0:80

or, for GNU/Linux :

/usr/bin/php -S 0.0.0.0:80
Sign up to request clarification or add additional context in comments.

2 Comments

A note for other idiots like me: you have to use the IP of the machine running the server from your other devices; "localhost" won't work. (I had a brain fart)
Yes Andre... I couldn't accept your answer at the time. Had to wait another 9 minutes. You may have the checkmark.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.