I solved the problem. Since it was a combination of two answers I thought the only fair thing to do was add another answer with an explanation.
As @Mehran suggested, I have had the server address set up as 127.0.0.1
instead of the network address. After changing that to 192.186.1.3
I was able to connect from the server itself, but other machines were unable to connect. Then I did the steps from the guide provided in @vtortola's answer to add a new inbound rule into the server's firewall in order to allow that port to be used.
So finally it all works now, thank you very much for helping me. +rep to everyone!