The problem I have is that my Internet connection (Wi-Fi) keeps going off every 5 minutes or less.
When I start my Mac, Wi-Fi works perfectly, but after a few minutes, the Internet connection goes off. If I disconnect Wi-Fi and reconnect after a few seconds, the Internet connection works, but only for a few minutes, and then I have to disconnect and connect again.

When I connect the mac with others wifi works perfectly but the one at home gives me this problem only on my macbook. Because i have also an iphone and ipad and for them (the wifi that i use at home) works perfectly.

It's very annoying. I had the same issues with macOS Sierra, so I decided to update the OS, but it's the same.

without more information we can not answer. Give us more info on the WiFi it self. Do you have that problem when on another WiFi, like Starbucks. This is to determine if your WiFi service is the problem not your Mac.
– RuskesSep 6 '18 at 17:29

Hi, when i connect the mac with others wifi works perfectly but the one at home gives me this problem only on my macbook. Because i have also an iphone and ipad and for them (the wifi that i use at home) works perfectly.
– Frank DuneSep 11 '18 at 16:07

do you see many other strong signal WiFi around your home, if yes it could be the WiFi channel choice. Also if you have more then one WiFi spot in your home it could be trying to switch.
– RuskesSep 11 '18 at 16:21

2 Answers
2

Troubleshooting can be a process of elimination and often requires patience. Below are a few things you can try.

Try another 'Wi-Fi' network

It'd be interesting to see whether your MBA can maintain an internet connection from another Wi-Fi network. If you have an iPhone you can share an internet connection from its cellular connection and connect to that via your Mac's Wi-Fi port? Does this allow your MBA to browse the web, send/receive emails, etc and maintain the connection for longer than the five or so minutes you're having problems with?

Another way to test this is via a public Wi-Fi services (McDonalds, Starbucks, etc).

Test your Wi-Fi network

If your MBA connects fine to other Wi-Fi networks, then it's time to test your home Wi-Fi connection with other devices (such as an iPhone, iPad, etc) to see if they also drop a connection. If they do then you know it's your Wi-Fi network that needs investigating.

On the other hand, if they connect fine, it may be time to reboot your Wi-Fi router. This is because your router may have a limit on how many devices can be connected at any one time, or may struggle when too many devices are connected.

To do this, switch the router off for about a minute and then switch it back on. Wait a couple of minutes and then try connecting your MBA and testing to see what happens.

A better place, then using Finder, to monitor the file would be directly from the Console app in /Applications/Utilities/Console.app. Then in the left column click on the /var/log folder and select wifi.log. You can then see input in real time and search too.
– user3439894Sep 11 '18 at 19:16

JSYK Even without Enable Wi-Fi Logging turned on, there is a small amount of normal logging that takes place for Wi-Fi, while turning logging on generates a greater amount of it containing different information.
– user3439894Sep 11 '18 at 19:52

@user3439894 JSYK, Apple decided to have the Option to Enable WiFi Logging for a reason.
– RuskesSep 12 '18 at 5:54

@user3439894 JSYK, those are the same files in Console and in /var/log/wifi.log. When opening the file in /var/log/ it opens with Console app.
– RuskesSep 12 '18 at 5:56