Adding on to the answer mentioned above, you can also check the following points to troubleshoot your issue
- Verify both the host machine and Turtlebot4 are connected to the same network
- Set ROS_MASTER_URI on both the host machine and the Rpi
- On Turtlebot, set ROS_IP to match the Turtlebot IP address
If the problem persists, try initializing ROS on your Rpi as well. You can later use the following command to check if ROS master is up and running
bool ros ::master::check()
If the master is available it will return true, else it will return false.
I hope you are able to proceed further