To open remote forwarded port as public, append GatewayPorts yes
config to ssd
config file:
/etc/ssh/sshd_config
Run the following commands to get infinity loop in request:
ssh -L 0.0.0.0:3000:localhost:3000 <ssh_server_ip>
ssh -R 0.0.0.0:3000:localhost:3000 <ssh_server_ip>