how to on server ping without login in hotspot

how to on server ping without login in hotspot
my local ip 172.30.12.1
but without login this ping not reach

You could put the IP into the Walled Garden IP list. But that will also mean that the user can see all services on that IP not just be able to ping.

You can add rules in firewall filter to allow pings in pre-hs-input.

/ip firewall filter add action=accept chain=pre-hs-input comment="Allow ICMP" disabled=no protocol=icmp

This code will allow pings without hotspot login. Make sure you place this rule before any drop rule.