@NAC-Nuno
Hello,
about active connections and remote IP addresses I just noticed a discrepancy between what it's shown in the 3rd party firewall I'm using and Network Monitor & Antivirus
For example Firefox.exe: I'm currently connected to Discord website. For the same IP address the 3rd party firewall shows gateway.discord.gg while Network Monitor & Antivirus shows Cloudflare, Inc.
View attachment 297262View attachment 297263
The same for CyberLock.exe: I've CyberLock software in my system. The 3rd party firewall shows cyberlock.global while Network Monitor & Antivirus shows Cloudflare, Inc.
View attachment 297264View attachment 297265
*edited* I must add that for CyberLock.exe also Sniffnet detects the remote IP address 104.21.45.182 as Cloudflare Inc, not cyberlock.global, so I'm rather confused
View attachment 297274
What could be the reason of different infos on the same IP address ? I suspect, but I'm not 100 % sure that cyberlock.global is the domain assigned that specific IP address, while Cloudflare, Inc is the Internet Service Provider (ISP) which assign that IP address / domain.
I could be wrong, of course.
About the geographic location of a specific IP address, in this case 104.21.45.182, different Geolocation providers show different geographic locations. The subsequent three screenshot are taken from the website IPLocation.net
IP Lookup | Find Your Public IP Address Location Out of 7 Geolocation providers, 4 of them show San Francisco (California - USA), 2 of them show Toronto (Ontario - Canada). The last Geolocation provider wasn't able to find the geographic location of the IP address. All of them show Cloudflare, Inc. as ISP / Organization except the last one which show Cloudflare.
View attachment 297278View attachment 297279View attachment 297280
The reason, after a Google search
View attachment 297284
Also this thread on Quora, old but still actual I think
https://www.quora.com/Why-would-dif...ices-show-different-locations-for-the-same-IP
Your suspicion is absolutely correct. This is a very common question in network monitoring. I will explain technically the reason for this difference and why both programs are "correct," but looking at different layers.
1. ASN (Network Owner) vs. Domain Name
Network Monitor & Antivirus is showing the Organization (ASN) information, which is the "legal" owner of the IP address block.
Cloudflare, Inc. is an infrastructure provider (CDN/Proxy). They are the "owners" of the cable and the server where the website is hosted.
gateway.discord.gg and cyberlock.global are the Domain Names (the friendly "addresses") that point to Cloudflare's servers.
2. Why the discrepancy?
Thousands of different websites use Cloudflare for protection and performance. Because of this, they share the same IP addresses.
The Network Monitor: Uses Geolocation APIs (such as ip-api or ipwhois) that query worldwide databases of IP records. These databases simply say: "This IP belongs to Cloudflare."
The Third-Party Firewall: You probably use a technique called DPI (Deep Packet Inspection) or monitor your Windows DNS Cache. It "saw" when Firefox asked "What is Discord's IP?" and linked that name to the destination IP at the time of connection.
3. The Location Issue (The Magic of "Anycast")
Regarding the location switching between San Francisco (USA) and Toronto (Canada): IP 104.21.45.182 is what we call an Anycast IP. This means that the same IP address is "live" on hundreds of Cloudflare servers around the world at the same time.
When you connect, the network routes you to the server closest to you (probably in Toronto or another local node). Some GeoIP providers log the company's headquarters (California), while others try to map where the traffic actually ends up (Toronto). Because Cloudflare dynamically changes these routes to optimize traffic, geolocation databases are never 100% accurate.
Technical Summary:
Cloudflare: This is the "ISP/Provider" (as you suspected). It's the one that provides the security and infrastructure.
Discord/Cyberlock: These are the "Tenants" that use this infrastructure.
Difference in Apps: Your Network Monitor prioritizes identifying the infrastructure (ASN) to know if the server belongs to a reputable company (like Cloudflare), while the firewall focuses on the hostname to help the user know which website they are visiting.
Tip: In your Network Monitor code, I saw that we already classified Cloudflare as a "Yellow" alert (warning), because it's a reliable service, but it can mask the real destination, exactly as you noticed!
If you'd like, I can try implementing a reverse DNS feature in the future so that our software also attempts to display the domain name (e.g., Discord) alongside the organization name. Would you like me to make this change?