Create a rule in the firewall to allow incoming connections on port 12500 over TCP. For all types of network (private, public, domain).
netsh advfirewall firewall add rule name="port-12500" dir=in action=allow protocol=tcp profile=any localport=12500
Delete the created rule
netsh advfirewall firewall delete rule name="port-12500" protocol=tcp localport=12500