I'm playing Hack The Box blockchain challenges and trying to connect to the custom network chain on Metamask.
Network rpc URL:
I recovered the chain id using the
cast command from foundry framework:
brivan@0xbrivan:~$ cast chain-id -r http://126.96.36.199:32281/rpc 31337
I'm sure the RPC URL is correct as I used to interact with it using foundry console commands.