You can see if there is an expected answer or not.
When using javascript, you need to stay within HTTP bounds.
Of course, you can send an Ajax request to any server port and see if you have an error. If you want to check the port for the current computer, perhaps sending a request to "localhost: 843" may help.
But the error may be due to some other reasons, and not to the problem of the firewall.
We need more information to help you.
source share