r/cpp • • Oct 21 '26

What's the difference between cppreference .com and .net?

My duckduckgo googling started giving me both, I don't understand the difference and don't remember which one is the original

They both look exactly the same
.com has en. at the beginning
.net doesn't have accounts

.net has the picture, .com doesn't


Is it a typosquash, is one of them fake, what's going on?

11 Upvotes

14 comments sorted by

22

u/jedwardsol const & Oct 21 '26

.com is the original

.net is a mirror. Maybe set up when .com was having issues? I seem to remember the .com was down a lot last year.

30

u/afforix Oct 21 '26

It is explained on the About page: https://cppreference.net/about.html.

13

u/TheThiefMaster C++latest fanatic (and game dev) Oct 21 '26

Though it for some reason links back to itself when it tries to link to the original.

3

u/SirClueless Oct 23 '26

Maybe someone added something to rewrite all .com links to .net and it accidentally runs after adding that about page instead of before?

7

u/meetingcpp Meeting C++ | C++ Evangelist Oct 21 '26

cppreference.net is registered in China, when you lookup the domain with whois. the .com seems to be hosted in the US.

So maybe within Chinas Internet this acts as a mirror.

5

u/rileyrgham Oct 22 '26

2s Google : "cppreference.com is the official, original community-maintained wiki for C and C++ documentation, while cppreference.net is an unofficial mirror site.".

1

u/BookkeeperThese5564 DNKpp 28d ago

Whichever the original one may be; am I the only one who has trouble finding anything via the embedded search field? It mostly does not find anything recently, but I remember that it was working for the last couple of years...

1

u/lazy_londor 26d ago

I prefer https://devdocs.io/cpp. Same content but with instant search.

1

u/jwakely libstdc++ tamer, LWG chair 25d ago

That suggests you're using the wrong one.

.net was a mirror of the old site and the search just uses Bing.

.com is the official one and has a new search that works very well.

-5

u/thisismyfavoritename Oct 21 '26

they resolve to the same IP for me

9

u/guepier Bioinformatican Oct 21 '26

They definitely don’t, unless you are running a custom DNS server.

2

u/thisismyfavoritename Oct 21 '26

was from work so possible!

1

u/khedoros Oct 21 '26

I see them on different IPs, but both in a block of IPs owned by Cloudflare.