I have read a few posts and articles about why a connection would be refused. This usually talks about it in general, like this one What causes the 'Connection Refused' message?.
But my question is how or when can you be certain that there is something wrong with the other side (lets say someone sending a request to you).
In this scenario if you call a request to a public ip and port that you set up and the connection goes through and everything goes right (from different devices, ips and networks) but then, if someone else sends it it gets refused. How do we know what the issue is ?