Open yangjian102621 opened 5 years ago
@duduppp
Hi, here, just modify the filecoin deamon configuration file.
it's default path is ~/.filecoin/config
.
Find the configuration for api.address
:
"address": "/ip4/127.0.0.1/tcp/3453"
You can modify the port 3453 to other port you like.
@yangjian102621 Maybe I'm wrong about that. I mean, I can't link, even though ‘accessControlAllowCredentials’ is set to true, I still can't link.maybe the problem is port. i try restart filecoin and link again ,but it's fail. tips: Caused by: java.net.ConnectException: Failed to connect to /192.168.2.12:3453 Caused by: java.net.ConnectException: Connection refused: connect。 I just want to test filecoin RPC。 jsapi,goapi :‘/ip4/127.0.0.1/tcp/3453/http';java ?
I don't know how to test the connection.
@duduppp
Here, Filecoin client http api is only allow by localhost
or 127.0.0.1
access default, if you want to connect it in local area network, you should modify the api.address
to /ip4/192.168.2.12/tcp/3453
3453 这个端口,如何在filecoin 设置?