How create a localhost from current directory with custom port
Using with Programming CLI and Builts Apps in any system
-
code :
$ python -m SimpleHTTPServer 8080 # or any port number you want to be
-
usage :
- click localhost
- Or, open web-browser (firefox, chrome, etc.)
- write localhost:8080 at the address-bar
-
code :
$ php -S localhost:8000 # or any port number you want to be
-
usage :
- click localhost
- Or, open web-browser (firefox, chrome, etc.)
- write localhost:8080 at the address-bar