Calling the dfx local replica from network

Hi, guys!

I’m trying to establish a connection between my laptop and the server, both in our network.

Unfortunately, it turned out to be a bit more complicated than I would expect.

We have a server in our network, where I run dfx start, and where I have a canister deployed.
If I try to call the canister from the terminal on that server, e.g.
dfx canister call bkyz2-fmaaa-aaaaa-qaaaq-cai mng_get_integration
, I can succesfully get the expected response.

But when I’m trying to call the canister on that server from my laptop:
dfx canister call bkyz2-fmaaa-aaaaa-qaaaq-cai mng_get_integration --network http://192.xxx.xxx.1:8123
, it just gets stuck.

Am I missing something?

Thanks in advance,
Mikhail

It probably has something to do with how you expose that port to the network. Maybe these threads give you some ideas?

Hi, Severin. Thank you for the quick reply!

I assume, that the port is open and reachable. I can connect to it with telnet.
And also, when I try to use some non-existent canister-id, I get response from dfx:
Cannot find canister id. Please issue 'dfx canister create bkyz2-fmaaa-aaaaa-qaaaq-cac --network http___192_xxx_xxx_1_8123

And also, when I try to reach the canister from the browser, I get the response:
image

Though, if I use a dfx canister sign + dfx canister send + dfx canister request-status, I get the correct response… Any hints about what could be wrong when I try to use just dfx canister call ?