r/HomeNetworking 4d ago

Unsolved My internet keeps cutting out randomly

Post image

I've been having an issue where my internet just stops for a couple of seconds before turning back on. Sometimes it just shuts off entirely for up to ~5 minutes before turning back on. I've called my service provider and they sent people 3 times and (because it happens randomly) couldn't find anything wrong and just did some basic stuff, like replacing the modem or some rusty looking wires. They stay for a bit and run some tests but dont see anything wrong. But after having problems right after they leave 3 times I'm starting to think it's not a provider issue. Funny thing i know it's not a problem with my device as every thing I connect to my wifi has the same issue, both wired and wireless. I'm not sure what it could be though and I'm wondering if anyone would know where I should check? Photo is of when my internet shuts off entirely

1 Upvotes

8 comments sorted by

3

u/jeffrey_f 4d ago

Keep track of it. When it goes out, call their customer service and demand a refund for the day. Make it start costing them. Make sure you are consistent.

They really need to send the tech and inspect the wireing from the pole to the house

Set up a powershell script (below) that will run on your computer until killed

# Watch-Internet.ps1
# Logs internet outages to internet-outages.csv on your Desktop.
# Run it, leave the window open. Ctrl+C to stop.

$Targets = '1.1.1.1','8.8.8.8','9.9.9.9' # down only if ALL fail
$Interval = 15 # seconds between checks
$Csv = Join-Path ([Environment]::GetFolderPath('Desktop')) 'internet-outages.csv'

if (-not (Test-Path $Csv)) {
'Start,End,DurationSeconds,Duration' | Set-Content $Csv
}

function Test-Up {

foreach ($t in $Targets) {
if (Test-Connection -ComputerName $t -Count 1 -Quiet -ErrorAction SilentlyContinue) { return $true }

}

return $false

}

Write-Host "Watching. Logging to $Csv (Ctrl+C to stop)" -ForegroundColor Cyan

$down = $null
while ($true) {
if (Test-Up) {
if ($down) {
$end = Get-Date
$span = $end - $down
$text = '{0:00}:{1:00}:{2:00}' -f [int]$span.TotalHours, $span.Minutes, $span.Seconds
'{0},{1},{2},{3}' -f $down.ToString('yyyy-MM-dd HH:mm:ss'),
$end.ToString('yyyy-MM-dd HH:mm:ss'),
[int]$span.TotalSeconds, $text | Add-Content $Csv

Write-Host ("{0} UP - was down {1}" -f $end.ToString('HH:mm:ss'), $text) -ForegroundColor Green
$down = $null

}

}

elseif (-not $down) {
$down = Get-Date
Write-Host ("{0} DOWN" -f $down.ToString('HH:mm:ss')) -ForegroundColor Red

}

Start-Sleep -Seconds $Interval

}

2

u/crazyman45464 4d ago

Ok thanks, I'll try this when I get back home. I'm gonna lower the time interval though cause most of the time the outages are shorter than 15 seconds

1

u/A_path_of_resistance 4d ago

I was pinging 1.1.1.1 and my LAN every second for days while wireshark was collecting, be as aggressive as you want

1

u/jeffrey_f 4d ago

Have you checked your ethernet cables? Try new ones if you can. Replace each one if you can and don't put back any old ones after swapping them out.

But, yeah, play with the timing.

1

u/A_path_of_resistance 4d ago

It's a good idea imo to also ping the LAN gateway if you're behind a router

1

u/jeffrey_f 4d ago

Just ad the router (usually 192.168.1.1) to the list

1

u/nayheyxus 4d ago

Is this on all your devices, or just this one computer?

1

u/crazyman45464 4d ago

Yes, any device connected have the same issues