php-remote-storage icon indicating copy to clipboard operation
php-remote-storage copied to clipboard

Port is not opened after server starts.

Open rebelC0der opened this issue 6 years ago • 3 comments

Hello.

hope this project is stil alive. I am starting the server on my Pi:

pi@OllyTestBench:~/php-remote-storage-1.0.5 $ sudo php -S localhost:8080 -t web/ contrib/rs-router.php
PHP 7.0.27-0+deb9u1 Development Server started at Thu May 24 15:38:23 2018
Listening on http://localhost:8080
Document root is /home/pi/php-remote-storage-1.0.5/web
Press Ctrl-C to quit.

But when scanning ports or connecting, the port 8080 is not opened:

jurisl@JurisLinuxPC:/media/Work/code/mt_test$ sudo nmap -Pn 192.168.1.70

Starting Nmap 7.01 ( https://nmap.org ) at 2018-05-24 16:41 BST
Nmap scan report for 192.168.1.70
Host is up (0.18s latency).
Not shown: 998 closed ports
PORT   STATE SERVICE
22/tcp open  ssh
80/tcp open  http
MAC Address: B8:27:EB:30:D8:51 (Raspberry Pi Foundation)

Nmap done: 1 IP address (1 host up) scanned in 2.28 seconds

Any idea why this is happening ?

rebelC0der avatar May 24 '18 15:05 rebelC0der

Any idea why this is happening ?

Yeah, you are only listening on "localhost".

By the way: running php-remote-storage like this is only for development purposes, not for actual usage.

fkooman avatar May 24 '18 15:05 fkooman

Thanks for the answer.

But I should stil see that port opened on a local network ? No ? What is the best way to run it for the actual use ?

rebelC0der avatar May 24 '18 15:05 rebelC0der

But I should stil see that port opened on a local network ? No ?

localhost means the machine you run on only, so no outside access.

What is the best way to run it for the actual use ?

https://github.com/fkooman/php-remote-storage/blob/master/SERVER.md

fkooman avatar May 24 '18 15:05 fkooman