After learning about CG-NAT and DHCP, in hindsight I’m wondering why it worked. I got a few ideas why but could someone explain?

Was it because it was all within LAN, and not remotely from outside LAN? So anything within LAN will work even under CG-NAT?

Was it because it was just the PC and the router, and doing something like sshing into PC from phone would’ve not worked? I.e, device-to-device wouldn’t work but device-to-router does?

Was it because I have both ipv4 and ipv6 (according to wifi settings on my phone), and ipv6 isn’t affected by CG-NAT?

I can’t remember exactly what the issue DHCP brings for port forwarding, remote access, ssh, etc. is but I feel like there was something and the solution was static IP or DDNS. Might’ve been a selfhosting thing? idk

1 point

Try access it using mobile data.

Local will work because it is your network. Outside of that depends on ISP.

permalink
report
reply
1 point

CGNAT affects accessing your LAN from outside your network, i.e. over the Internet. Traffic within your own LAN is not affected whatsoever.

permalink
report
reply
1 point

A LAN works without the Internet at all. CG-NAT is the internet for you. So anything LAN related is free of cg-nat restrictions.

DHCP could change your internal IP, so it’s nice to have static IPs sometimes.

permalink
report
reply
1 point

It is possible your router supports hair-pinning or (NAT loopback).

When it detects you are trying to access the external IP address (even if it is cg-nat) it is smart enough to router the data basin internally and some are smart enough to apply firewall rules as well…

permalink
report
reply

Home Networking

!homenetworking@selfhosted.forum

Create post

A community to help people learn, install, set up or troubleshoot their home network equipment and solutions.

Rules

  • Please stay on topic.
  • Please use the search function to look for keywords related to what you want to ask before posting since most common issues have been answered.
  • No Ads. This community is for support and discussion. Ads and self promotion are not welcome here.
  • No product reviews or announcements. If you have a question about a product, be specific about what you want to know.
  • Be civil. Don’t be a jerk. Not being a jerk is surprisingly easy.
  • No URL shorteners. URL shorteners tend to hide the real use of a link. For this reason, please use normal links, even if they’re long.
  • No affiliate links.
  • No gatekeeping. With profession shall come professionalism. Extend help without judging others for their ignorance. The same goes for downvoting of comments or posts for “stupid questions” or not being as knowledgeable as others.

Community stats

  • 12

    Monthly active users

  • 1.8K

    Posts

  • 5.1K

    Comments