# Losing occational remote access to raspberry pi

**URL:** https://dietpi.com/forum/t/losing-occational-remote-access-to-raspberry-pi/4832
**Category:** Troubleshooting
**Created:** [8 January 2021 22:11 UTC](https://dietpi.com/forum/t/losing-occational-remote-access-to-raspberry-pi/4832 "2021-01-08T22:11:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gofireworks](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/7bcc69/32.png) [@gofireworks](https://dietpi.com/forum/u/gofireworks)
#### Post date: [8 January 2021 22:11 UTC](https://dietpi.com/forum/t/losing-occational-remote-access-to-raspberry-pi/4832/1 "2021-01-08T22:11:12Z")

</div>

Hi,  
I have a Raspbyerr Pi 4 running Dietpi. I am occationally unable to ssh into the pi outside my network, even if I was able to just a few minutes prior.

I set up a script a few days ago to see if I was able to ping google. When I ran into problems again, I noted the time. During this time, the Pi was still able to reach the outside network, despite me not being able to ssh into it.

Does anyone happen to know why this might be the case?  
I appreciate any help!

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [10 January 2021 21:10 UTC](https://dietpi.com/forum/t/losing-occational-remote-access-to-raspberry-pi/4832/2 "2021-01-10T21:10:04Z")

</div>

Hi,

what do you mean by unable to ssh into the pi outside my network. Are you trying to connect to your system using VPN from internet?

---

<div class="post-metadata">

### Author: ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)
#### Post date: [11 January 2021 21:56 UTC](https://dietpi.com/forum/t/losing-occational-remote-access-to-raspberry-pi/4832/3 "2021-01-11T21:56:30Z")

</div>

One possible explanation is the periodic change of dynamic IP.  
A cycle of the wan interface usually takes not more than 5", usually 1" is enough for a down/up.  
So the ping from the lan to google will barely be affected. However the change of IP takes longer to be updated in dyndns, so the SSH would take longer.
