I cannot access RPiB+ from my local network

Having issues with your DietPi installation, or, found a bug? Post it here.
dragos
Posts: 5
Joined: Sun Apr 05, 2020 3:50 pm

I cannot access RPiB+ from my local network

Post by dragos »

Hello together,

Before start I need to mention that I have searched for a fix on Google and here for several weeks. But nothing found. For the moment I do not want to start with a fresh install.

I have a RPiB+ with Diet OS configured as DHCP (using Wi-fi with local IP 192.168.0.150) and I cannot access it through local network even that I can ping it with success and I can see it when I'm scanning the network with Advanced IP Scanner.

I have NextCloud installed and I want to access it via port 80. SSH the same is not available on local network.

One thing to mention (maybe this is the problem) : I have Remote.it account installed and guess what HTTP and SSH is working (on their links).

Am I missing something?

Thanks
User avatar
Joulinar
Posts: 2025
Joined: Sat Nov 16, 2019 12:49 am

Re: I cannot access RPiB+ from my local network

Post by Joulinar »

Hi,

question: are you able to access your system via Remote.it?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
dragos
Posts: 5
Joined: Sun Apr 05, 2020 3:50 pm

Re: I cannot access RPiB+ from my local network

Post by dragos »

Joulinar wrote: Sun Apr 05, 2020 4:08 pm Hi,

question: are you able to access your system via Remote.it?
yes, all the time! (if system == RPiB+)
User avatar
Joulinar
Posts: 2025
Joined: Sat Nov 16, 2019 12:49 am

Re: I cannot access RPiB+ from my local network

Post by Joulinar »

pls can you connect to your system and run the following command

Code: Select all

lsof -i -P -n | grep LISTEN
if lsof command is not available, it can be installed like the following

Code: Select all

apt install lsof
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
dragos
Posts: 5
Joined: Sun Apr 05, 2020 3:50 pm

Re: I cannot access RPiB+ from my local network

Post by dragos »

Joulinar wrote: Sun Apr 05, 2020 4:14 pm pls can you connect to your system and run the following command

Code: Select all

lsof -i -P -n | grep LISTEN
if lsof command is not available, it can be installed like the following

Code: Select all

apt install lsof

Code: Select all

root@DietPi:~# lsof -i -P -n | grep LISTEN
rpcbind    629      root    8u  IPv4   12564      0t0  TCP *:111 (LISTEN)
rpcbind    629      root   11u  IPv6   12567      0t0  TCP *:111 (LISTEN)
dropbear  2810      root    3u  IPv4   18485      0t0  TCP *:22 (LISTEN)
dropbear  2810      root    4u  IPv6   18486      0t0  TCP *:22 (LISTEN)
redis-ser 3000     redis    4u  IPv4   16110      0t0  TCP 127.0.0.1:6379 (LISTE                                                                                        N)
mysqld    3121     mysql  109u  IPv4   18690      0t0  TCP 127.0.0.1:3306 (LISTE                                                                                        N)
lighttpd  3251  www-data    4u  IPv4   20569      0t0  TCP *:80 (LISTEN)
lighttpd  3251  www-data    5u  IPv6   20570      0t0  TCP *:80 (LISTEN)
mosquitto 3273 mosquitto    4u  IPv4   21640      0t0  TCP *:1883 (LISTEN)
mosquitto 3273 mosquitto    5u  IPv6   21641      0t0  TCP *:1883 (LISTEN)
netdata   3286   netdata    3u  IPv4   18900      0t0  TCP 127.0.0.1:19999 (LIST                                                                                        EN)
netdata   3286   netdata   13u  IPv6   18916      0t0  TCP [::1]:8125 (LISTEN)
netdata   3286   netdata   14u  IPv4   18917      0t0  TCP 127.0.0.1:8125 (LISTE                                                                                        N)
rpimonito 3591    dietpi    5u  IPv4   22760      0t0  TCP *:8888 (LISTEN)
miniserv. 3689      root    5u  IPv4   19130      0t0  TCP *:10000 (LISTEN)

User avatar
Joulinar
Posts: 2025
Joined: Sat Nov 16, 2019 12:49 am

Re: I cannot access RPiB+ from my local network

Post by Joulinar »

basically your system should be available on local network as well because you have dropbear SSH server (port 22) as well as lighttpd web server (port 80) listen on all interfaces. It's not blocked or used by something else.

Code: Select all

dropbear  2810      root    3u  IPv4   18485      0t0  TCP *:22 (LISTEN)
dropbear  2810      root    4u  IPv6   18486      0t0  TCP *:22 (LISTEN)
lighttpd  3251  www-data    4u  IPv4   20569      0t0  TCP *:80 (LISTEN)
lighttpd  3251  www-data    5u  IPv6   20570      0t0  TCP *:80 (LISTEN)
pls can you try telnet from another host/computer on your network to the DietPi RPi system.

Code: Select all

telnet 192.168.0.150 22
telnet 192.168.0.150 80
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
dragos
Posts: 5
Joined: Sun Apr 05, 2020 3:50 pm

Re: I cannot access RPiB+ from my local network

Post by dragos »

Joulinar wrote: Sun Apr 05, 2020 4:37 pm basically your system should be available on local network as well because you have dropbear SSH server (port 22) as well as lighttpd web server (port 80) listen on all interfaces. It's not blocked or used by something else.

Code: Select all

dropbear  2810      root    3u  IPv4   18485      0t0  TCP *:22 (LISTEN)
dropbear  2810      root    4u  IPv6   18486      0t0  TCP *:22 (LISTEN)
lighttpd  3251  www-data    4u  IPv4   20569      0t0  TCP *:80 (LISTEN)
lighttpd  3251  www-data    5u  IPv6   20570      0t0  TCP *:80 (LISTEN)
pls can you try telnet from another host/computer on your network to the DietPi RPi system.

Code: Select all

telnet 192.168.0.150 22
telnet 192.168.0.150 80
thanks for your answer:

on telnet I have the following:

Code: Select all


C:\Users\user>telnet 192.168.0.150 22
Connecting To 192.168.0.150...Could not open connection to the host, on port 22: Connect failed

C:\Users\user>telnet 192.168.0.150 80
Connecting To 192.168.0.150...Could not open connection to the host, on port 80: Connect failed

and with ping

Code: Select all

C:\Users\user>ping 192.168.0.150

Pinging 192.168.0.150 with 32 bytes of data:
Reply from 192.168.0.150: bytes=32 time=5ms TTL=64
Reply from 192.168.0.150: bytes=32 time=4ms TTL=64
Reply from 192.168.0.150: bytes=32 time=5ms TTL=64
Reply from 192.168.0.150: bytes=32 time=5ms TTL=64

Ping statistics for 192.168.0.150:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 4ms, Maximum = 5ms, Average = 4ms


strange...
User avatar
Joulinar
Posts: 2025
Joined: Sat Nov 16, 2019 12:49 am

Re: I cannot access RPiB+ from my local network

Post by Joulinar »

Just an idea. Did you tried to restart the RPi?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
dragos
Posts: 5
Joined: Sun Apr 05, 2020 3:50 pm

Re: I cannot access RPiB+ from my local network

Post by dragos »

Joulinar wrote: Sun Apr 05, 2020 5:46 pm Just an idea. Did you tried to restart the RPi?
yep for several times. seems that going back to Rasbian OS seems that a more plausible way... :( :(
User avatar
Joulinar
Posts: 2025
Joined: Sat Nov 16, 2019 12:49 am

Re: I cannot access RPiB+ from my local network

Post by Joulinar »

Well DietPi is basically a Raspbian lite. Just with reduced amount of packages and some scripts on top. And local access is working fine on all my RPi. So something special on your system.

As I have seen, you are running rpcbind service. Not sure if this could have any impact
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply