Skip to content

Instantly share code, notes, and snippets.

@Caffe1neAdd1ct
Created July 6, 2018 07:54
Show Gist options
  • Save Caffe1neAdd1ct/2afc552e2a781542274f940945d92612 to your computer and use it in GitHub Desktop.
Save Caffe1neAdd1ct/2afc552e2a781542274f940945d92612 to your computer and use it in GitHub Desktop.
Start PHP Inbuilt webserver on current machine IP for sharing/showing projects on the network
## Find adapter name
ip addr show
## Replace enp0s3 with adapter name
"/usr/bin/php56" "-S" "$(ip -f inet addr show enp0s3 | grep -Po 'inet \K[\d.]+'):8000" "-t" "public" "server.php"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment