Solution:
For cellular network, go to Settings > Cellular > Cellular Data Options, and tap Limit IP Address Tracking.
In macOS Ventura or later:
In macOS Monterey: