Cpe disconnected via internet

Hi all.

I am facing a big problem.

I set up my ACS server and everything works fine, all my boxes appear in my UI.

When sending actions to the cpe, such as a reboot or refresh, I can only do it with those boxes that are in my local network.

Those cpes that are in another network, return me as a response “Device is Offline”.

In search of solving this, I accessed the debug_file and found this:

event: incoming HTTP request
timestamp: 2023-01-06T14:02:43.233Z
remoteAddress: “::ffff:”
deviceId: 000018-ampere-UPO1908201102327
connection: 2023-01-06T14:02:43.025Z
localPort: 7547
method: POST
url: /acs
host: MINE-URL:7547
cookie: session=f08d6735c28ed70d
user-agent: umcpe-0.1
accept: /
content-type: text/xml
content-length: “0”
body: “”
event: outgoing HTTP response
timestamp: 2023-01-06T14:02:43.238Z
remoteAddress: “::ffff:”
deviceId: 000018-ampere-UPO1908201102327
connection: 2023-01-06T14:02:43.025Z
statusCode: 204
content-length: 0
server: GenieACS/1.2.9+20220822165235
soapserver: GenieACS/1.2.9+20220822165235
connection: close
body: “”
event: outgoing HTTP request
timestamp: 2023-01-06T14:02:43.554Z
remote Address:
deviceId: 000018-H98M%2DH001-UPO1769190904127748F1BE65067
connection: null
remotePort: “7000”
method: GET
url: /
error: socket hang up

and seeing this, it seems quite logical to me that it fails, since it is trying to connect through the local ip, am I correct?

I need help to be able to work with the cpe that are in other networks.

Thank you for your time.