Not connected to internet

Joined
Sep 26, 2017
Messages
55
Reaction score
0
Points
6
I have a Mac running Mojave which today encountered a problem. Trying to connect to a NAS it says the server can’t be found because there is no internet connection. I also can’t log in to a VPN with the same message. In system preferences Network and WI-FI are listed as connected. Safari loads via Handoff. I’ve disconnected Kaspersky which makes no difference and the VPN won’t connect anyway. Using the IP address for the NAS in Safari doesn’t connect but will from my iPad.
Ideas welcome.
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,745
Reaction score
2,071
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Are you connecting through WiFi and Ethernet or just WiFi? Either way, in Network, click on all the Connected interfaces and on the right, it should sayfor WiFi "Wi -Fi is connected to <SSID> and has the IP address of xxx.xxx.xxx.xxx".

Ensure the IP address is not something like 169.254.xxx.xxx or so. Most home networks using the 192.168.xx.xx or 10.xx.xx.xx ranges and you should have one of those IP. This IP should follow the pattern of what your NAS is using.

Report back on what you have and we can go from there.
 
OP
C
Joined
Sep 26, 2017
Messages
55
Reaction score
0
Points
6
Are you connecting through WiFi and Ethernet or just WiFi? Either way, in Network, click on all the Connected interfaces and on the right, it should sayfor WiFi "Wi -Fi is connected to <SSID> and has the IP address of xxx.xxx.xxx.xxx".

Ensure the IP address is not something like 169.254.xxx.xxx or so. Most home networks using the 192.168.xx.xx or 10.xx.xx.xx ranges and you should have one of those IP. This IP should follow the pattern of what your NAS is using.

Report back on what you have and we can go from there.

Under Network both Ethernet and WI-FI say connected WI-FI is connected to correct SSID
Ethernet has IP 192.168.0.11
WI-FI has IP of 192.168.0.18
NAS has IP of 192.168.0.10 found this through the Fing app on my iPhone
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,745
Reaction score
2,071
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Can you turn off the WiFi and only use Ethernet and see what changes? Also go into the Advanced settings of Ethernet and WiFi and see what the "Router" value is. It should be 192.168.0.1 ideally. Can you also open a Terminal window and type the command "ping -c5 192.168.0.10" and "nslookup google.com" and show us the results?
 
OP
C
Joined
Sep 26, 2017
Messages
55
Reaction score
0
Points
6
Nothing changes when turning off WI-FI the router IP is 192.168.0.1

The rest is as follows

Last login: Tue Dec 11 11:46:06 on ttys000

Colins-iMac:~ colinwebb$ ping -c5 192.168.0.10
PING 192.168.0.10 (192.168.0.10): 56 data bytes
64 bytes from 192.168.0.10: icmp_seq=0 ttl=64 time=0.497 ms
64 bytes from 192.168.0.10: icmp_seq=1 ttl=64 time=0.553 ms
64 bytes from 192.168.0.10: icmp_seq=2 ttl=64 time=0.568 ms
64 bytes from 192.168.0.10: icmp_seq=3 ttl=64 time=0.653 ms
64 bytes from 192.168.0.10: icmp_seq=4 ttl=64 time=0.392 ms

--- 192.168.0.10 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.392/0.533/0.653/0.086 ms
Colins-iMac:~ colinwebb$ nslookup google.com
;; connection timed out; no servers could be reached

Colins-iMac:~ colinwebb$ ping -c5 192.168.0.10 nslookup google.com
usage: ping [-AaDdfnoQqRrv] [-c count] [-G sweepmaxsize]
[-g sweepminsize] [-h sweepincrsize] [-i wait]
[-l preload] [-M mask | time] [-m ttl] [-p pattern]
[-S src_addr] [-s packetsize] [-t timeout][-W waittime]
[-z tos] host
ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait]
[-l preload] [-M mask | time] [-m ttl] [-p pattern] [-S src_addr]
[-s packetsize] [-T ttl] [-t timeout] [-W waittime]
[-z tos] mcast-group
Apple specific options (to be specified before mcast-group or host like all options)
-b boundif # bind the socket to the interface
-k traffic_class # set traffic class socket option
-K net_service_type # set traffic class socket options
-apple-connect # call connect(2) in the socket
-apple-time # display current time
Colins-iMac:~ colinwebb$
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,745
Reaction score
2,071
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
OK, looks like you are able to access things on your Network like the NAS. But your DNS isn't available to resolve a domain name like google.com to it's IP address, thus your lack of Internet accessibility. Can you go back into the Network section in System Preferences, click on WiFi and then choose Advanced and jump to the DNS tab and see what info is there?

Also, can you do the following in the Terminal window "ping -c5 8.8.8.8" and see if you get a good response like you got with your NAS IP address or if you get a timed out error? If you get a good response, try to set that as the value on the DNS tab. You can use 8.8.8.8 and 8.8.4.4 as the two DNS IP addresses. With that set, now re-try the "nslookup google.com" command to see if you get a valid response.
 
OP
C
Joined
Sep 26, 2017
Messages
55
Reaction score
0
Points
6
OK, looks like you are able to access things on your Network like the NAS. But your DNS isn't available to resolve a domain name like google.com to it's IP address, thus your lack of Internet accessibility. Can you go back into the Network section in System Preferences, click on WiFi and then choose Advanced and jump to the DNS tab and see what info is there?

Also, can you do the following in the Terminal window "ping -c5 8.8.8.8" and see if you get a good response like you got with your NAS IP address or if you get a timed out error? If you get a good response, try to set that as the value on the DNS tab. You can use 8.8.8.8 and 8.8.4.4 as the two DNS IP addresses. With that set, now re-try the "nslookup google.com" command to see if you get a valid response.

That ping was fine no time out and the DNS settings were already as you stated 8.8.8.8 & 8.8.4.4 nslookup no server found
This is so frustrating.
Just to be clear DNS settings for Wi-fi are different 194.168.4.100 & 198.168.8.100
 
Last edited:

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,745
Reaction score
2,071
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Can you do the following in the Terminal and see if that works? "ping -c5 8.8.8.8" and "ping -c5 8.8.4.4"? If those two don't ping, then you can't resolve the names.
 
OP
C
Joined
Sep 26, 2017
Messages
55
Reaction score
0
Points
6
Can you do the following in the Terminal and see if that works? "ping -c5 8.8.8.8" and "ping -c5 8.8.4.4"? If those two don't ping, then you can't resolve the names.



Colins-iMac:~ colinwebb$ ping -c5 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=119 time=20.674 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=119 time=21.090 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=119 time=18.294 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=119 time=19.449 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=119 time=16.903 ms

--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 16.903/19.282/21.090/1.541 ms
Colins-iMac:~ colinwebb$ ping -c5 8.8.4.4
PING 8.8.4.4 (8.8.4.4): 56 data bytes
64 bytes from 8.8.4.4: icmp_seq=0 ttl=121 time=20.213 ms
64 bytes from 8.8.4.4: icmp_seq=1 ttl=121 time=27.618 ms
64 bytes from 8.8.4.4: icmp_seq=2 ttl=121 time=20.082 ms
64 bytes from 8.8.4.4: icmp_seq=3 ttl=121 time=23.924 ms
64 bytes from 8.8.4.4: icmp_seq=4 ttl=121 time=17.351 ms

--- 8.8.4.4 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 17.351/21.838/27.618/3.567 ms
Colins-iMac:~ colinwebb$
 
Joined
May 10, 2018
Messages
21
Reaction score
1
Points
3
Your Mac's Specs
MacBook Pro (13-inch, Mid 2012) 2.9 GHz Intel Core i7
what comes out when you ping google.com ?
 
R

Rocky97

Guest
Do webpages load in your web browser?

If wifi is connected and webpages don't load, maybe check your dns server? your isp's dns server may be down so you could add a public dns server like google:
8.8.8.8 and 8.8.4.4
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,745
Reaction score
2,071
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
It is interesting that you can ping the Google DNS servers but can't use it to resolve the names to IPs.

When I try to resolve google.com, I get back 172.217.7.14. So can you try "ping -c5 172.217.7.14" and see if that works. If that works as well, then this is purely a DNS issue as opposed to a general connectivity issue.
 
Joined
May 10, 2018
Messages
21
Reaction score
1
Points
3
Your Mac's Specs
MacBook Pro (13-inch, Mid 2012) 2.9 GHz Intel Core i7
Request timeout for icmp_seq 1 repeatedly

I stopped at seq_100

this is a dns issue, you can resolve the ip address but not the url. Remove the ethernet cable and use the wifi only, check if you are using the same dns server in your computer and your ipad.
 
OP
C
Joined
Sep 26, 2017
Messages
55
Reaction score
0
Points
6
In desperation I decided to restore to an earlier IOS version. This after thinking the problem began after a Mojave update.
The internet connection is now solved so reluctant to go back to Mojave. &#55357;&#56865;
 

pigoo3

Well-known member
Staff member
Admin
Joined
May 20, 2008
Messages
44,210
Reaction score
1,418
Points
113
Location
U.S.
Your Mac's Specs
2017 15" MBP, 16gig ram, 1TB SSD, OS 10.15
In desperation I decided to restore to an earlier IOS version. This after thinking the problem began after a Mojave update.
The internet connection is now solved so reluctant to go back to Mojave. &#55357;&#56865;

Thanks for the update Colin. Great to hear the internet connection issue was figured out!:)

- Nick
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top