Developers Forum for XinFin XDC Network

Discussion on: [Solved] How Do I Get an RPC URL for My Subnet?

gaslimit profile image
𝔤𝔞𝔰 𝔩𝔦𝔪𝔦𝔱 Author • Edited on

Hello, apologies for the late reply. I have successfully sent tokens from the master account to another address on the local machine where the subnet is being hosted, however I have failed when running the same script on a separate machine. How do I make it so that I can access the chain from anywhere? Please refer to the screenshots below

wanwiset25 profile image
Wanwiset Peerapatanapokin

Hi @gaslimit

This is a network issue. It depends on your connectivity on the remote machine to the subnet machine.

Are they on the same network (ie. "ping" works)?
Does port 8545 allow external connection on the subnet machine?

You might have to look at NAT, and Port forwarding if you want to call the subnet over the internet.

Thread Thread
gaslimit profile image
𝔤𝔞𝔰 𝔩𝔦𝔪𝔦𝔱 Author

Thank you! that was the issue.