Cant connect to a server from another network

{I have set up a nakama server and tried to connect to it from my friends pc. The server is fine and can be accessed from inside the LAN.I have setted up port forwarding but it did not help.}

  1. Versions: Nakama {3.5}, {Windows, Mac, Linux binary or Docker}, {client library (SDK) and version}
  2. Server Framework Runtime language (If relevant) { Lua}