Unable to connect to remote server with Mac OS

Hi,
I have an R server on a Ubuntu computer, and it is working properly.
Before I moved to Mac, I could connect to it via the computer's IP address (within the same network).
Using Mac (Macbook Pro M3, Sonoma 14.5) I ger an " This site can’t provide a secure connection" error.
If I try to reach the server from my android phone, there are no issues.
Any idea?