If you are on another computer in the same network and provided there are no internal firewall rules blocking the connection then yes.
If you are on the same machine then you’d have to connect to 127.0.0.1
Try have a look at this thread, if you’re still confused about it.