Does Husarnet work behind CGNAT with ipv4?

Hi Husarnet team!

There is a teacher who is trying to connect his robot to The Construct but he is having some issues.

When he connects the robot to the mobile network, it works (also tested with his computer), but when he connects to his Home network, it doesn’t work.

After some investigation, he found that he might be behind a CGNAT network.

Does Husarnet work on scenarios like this?

@ralves I have the same problem, I tried it with many friends in my country Peru and it never works when we connect the robot to our home network, we have tried with many intenernet providers here in Peru and it never works, but it always works when we connect the robot to the mobile network,

1 Like

Hi @Frenzi,

Maybe having the logs could better help the Husarnet team.

Could you try restarting husarnet and post the logs here?

You can restart using this command:

sudo service husarnet restart

And then I’d recommend restarting the theconstruct.rrl service as well, to make sure it tries to reconnect:

sudo service theconstruct.rrl restart

After that, you could check the logs of Husarnet:

sudo journalctl -u husarnet

Could you share here the logs of Husarnet?

But before sharing the code here, just make sure you don’t share the Husarnet Joincode, to avoid having other people join your network.

Hello @ralves and @Frenzi

In typical cases, CGNAT prevents Husarnet from establishing P2P connection, but fallback tunneled connection (through Base Servers) should work correctly, so if there is no connection at all it is not expected behavior. Please provide the logs as @ralves written, and husarnet status output.

Note:
Some ISP providers offer public external IPs for small additional fee, this could help mitigate this problem, as described here:

Best regards,
ympek from Husarnet team

These are the logs at the output when I connect to my phone and home network:
logs of Husarnet

Adding to this in both cases, I can ping between the two points.
I have inquired about acquiring a public IP, but the cost of this is 5 to 6 times more than the normal cost.

Thank you very much for the logs, @Frenzi

Connected to the Home network, after trying to connect from the rosject, could you also share here the husarnet status?

These are the status husarnet at the output when I connect to my phone and home network
logs of Husarnet , in the home status folder, I have placed the status images in two different time periods, this is very strange, the status alternates between the two images I have shared, the husarnet status of both The construct and my local machine has been placed.

Hi!

  1. It seems that you’re using some ancient version of Husarnet - could you please re-test on the latest stable (not nightly) one (v2.0.180)?
  2. There’s at least one join code shown in these logs and this forum is public. I’d advise you to rotate it