SketchUp thinks you don't have an Internet connection

Since about a month ago there has been an increase in the number of forum posts and support requests, where SketchUp is showing a message about how you need to have an Internet connection to do that feature. The features affected would include Add location, Generate Report, 3D Warehouse, and Extension Warehouse. It also would prevent you from being able to add a Classic license, or use an existing Network license. Some extensions may be affected too, if they rely on having an Internet connection (to check the license for example).

The problem doesn’t affect version 2019.3 and later, but could affect 2019.0, 2019.1, and 2019.2. It definitely affects 2018.

The issue appears to be the URL that SketchUp uses to test whether there is an Internet connection. For 2019 and later you can read this article to see how to edit the URL that is used:

https://help.sketchup.com/en/sketchup/cant-connect-web-tools-3d-warehouse-extension-warehouse-add-location-and-licensing

Look for the part that includes "OnlineTestURL": "",

The suggested URL in that article is for cases where you have an Intranet, and can use that as a way to test for a connection. The URL used in 2019.3 and later defaults to bing.com. If you wanted to make an earlier version of 2019 match the 2019.3 version, you would change the line to be like this:

"OnlineTestURL": "https://www.bing.com",

If the line doesn’t appear in the Preferences section, go ahead and add the whole line.

For SketchUp 2018 the URL is stored in a different file. On Windows the file is here:

C:\Program Files\SketchUp\SketchUp 2018\Resources\en-US\i18n.dat

The “en-US” part may need to be changed for other languages. You can edit that file with Notepad, and you will see this line:

ON_LINE_TEST_URL=http://www.google.com/ncr

Edit that line to change the address that is being used:

ON_LINE_TEST_URL=https://www.bing.com

SketchUp should then be able to see that you are online.

For Mac users, use the Go menu in Finder, Go to Folder… and paste in this path:

/Applications/SketchUp 2018/SketchUp.app/Contents/Resources/Content/Resources/en-US/i18n.dat

Again, the “en-US” part may need to be changed. On Mac you can edit that file with TextEdit.

Many people reporting the problem have seen success when making this change.

2 Likes

btw, an online check which:

  • uses a URI with a deep link ("google.com/ncr") instead of a less error-prone domain only
  • doesn’t check with a second or third domain if the first one fails
  • cannot be configured by the user via the program settings (e.g. if blocked by a firewall or proxy)
  • uses an unsecured connection instead of the secured one (SSL/TLS)
  • does use the resources of another company instead of the own.

doesn’t seem to be a failure save implementation at least.

2 Likes

It did have some imperfections.

I’m not sure what the reason for the recent increase is, but two possibilities are that Google altered how /ncr works, or macOS and Windows are now both blocking ‘http’. At least for some users.

Do you have a typo here? Should the file path be SketchUp 2018 (not 2016)

Could you also note in your original post that this issue can also affect extensions that require internet access for license activation and other online activities. As a developer, we typically use the command Sketchup.is_online to test whether there is a valid internet connection but the issue mentioned prevents this command from giving the correct result.

Thanks, I had copied that from an older post. I fixed it.

I added a note about extensions as well.