A
A
Anar4you2015-12-01 20:34:14
PHP
Anar4you, 2015-12-01 20:34:14

How to access a site created on a mac in a home network?

I launched a PHP site on a MacBook Air with the command: php -S 127.0.0.1:3000, the poppy has a local IP of 192.168.0.7, I switch from my PC (both the PC and macbook are on the same network created through the d'link dir 300 router) as a result, an error , they say is not available, what's the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anar4you, 2015-12-01
@Anar4you

Damn, I decided everything, I had to run it with the local IP command))) php -S 192.168.0.7:3000 and not 127.0.0.1

D
Dmitry, 2015-12-04
@ExileeD

Write php -S 0.0.0.0:3000
Then the site will be available from all interfaces

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question