Unable to access Homeassistant from homeassistant IOS companion app

So randomly, the IOS companion app was unable to connect to the server, I deleted the server and tried to add it again but every time I tried to add the server the request timed out.

I tried pinging the IP address from my Macbook and the request times out, but the Ipad and Macbook companion apps are connected to homeassistant. I can access homeassistant through homeassistant.local:8123 URL. I tried to ssh into the sever, that was also unsuccessful.

When I try to ping it I get this

PING 192.168.X.XXX (192.168.X.XXX): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
Request timeout for icmp_seq 7
^C
--- 192.168.4.120 ping statistics ---
9 packets transmitted, 0 packets received, 100.0% packet loss

I am also unable to connect to homeassistant throught smb as well. So I am pretty lost as to why as to its timing out and I can’t try to connect using the companion app or able connect through it with smb or ssh into it.