无法在基于Windows Server(RDP)的GoLang上从其他设备运行API

I have API GoLang based with port 1195, i want to run it from other device. I tried and it works on localhost to run the API with Postman.

But when i try to access the API from other device, it didn't work a.k.a Can't connect.

P.S: My 8080 port is accessible for other device, but my 1195 is not accessible Already allowed firewall for port 1195. Tried to change the port but still can't connect on other device

This is my config.ini:

{
    "app_name"       : "HELLOWORLD_API",
    "listening_port" : "1195",
    "host"           : "127.0.0.1",
    "port"           : "3306",
    "user"           : "root",
    "passwd"         : "",
    "dbname"        : "kube71"
}

I expect after I allowed the port 1195, I can connect to the API from other device.

Try following config:

{ "app_name" : "HELLOWORLD_API", 
  "listening_port" : "1195", 
  "host" : "0.0.0.0", 
  "port" : "3306",
  ...
}

Basically, change 127.0.0.1 to 0.0.0.0.

To get more info on why this is the case, have a look at https://superuser.com/questions/949428/whats-the-difference-between-127-0-0-1-and-0-0-0-0

Putting simply, 0.0.0.0 meaning it will be available to connect from all networks, not only from local