Skip to content

Improve geolocation and other descriptions of the IPAddress#38

Merged
Leonid-Zakharov merged 1 commit intomainfrom
RayFo/IPAddress
Jun 27, 2025
Merged

Improve geolocation and other descriptions of the IPAddress#38
Leonid-Zakharov merged 1 commit intomainfrom
RayFo/IPAddress

Conversation

@rayfo
Copy link
Copy Markdown
Contributor

@rayfo rayfo commented Jun 27, 2025

GeoLocation

Make GeoLocation more accurate and efficient:
There are large IP address ranges reserved for private networks and therefore have no geo-location.
These addresses show up a fair amount in network traces. The GeoLocation service simply returns 404.
Instead, detect and short-circuit those addresses. Simply return: "Local/Private Network"

Linux on Windows

Linux on Windows communicates with a socket using AF_HYPERV (34) and size = 16.
Copy the 12 bytes into an IPv6 address and set the port=34 as a tag.

Also, extend the translation from port numbers to service names (ie. :443 => HTTPS, etc.).

@rayfo rayfo requested a review from Leonid-Zakharov June 27, 2025 20:45
@Leonid-Zakharov Leonid-Zakharov merged commit 4d82b61 into main Jun 27, 2025
1 check passed
@rayfo rayfo deleted the RayFo/IPAddress branch July 2, 2025 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants