Using a rubyntlm script (http.rb), you get “connection refused.”

Problem scenario:  You modify this script to have a hostname, username, and password of a Windows server with IIS installed.  You add a "puts line" stanza on line 32 for debugging.  You try to run the script with ruby http.rb, but you get "connection refused."  

Possible solutions:  If you changed the port stanza in the http.rb file from 80, make sure there is no firewall blocking the port in the path to the Windows server.  Some port numbers will not be accessible by default on your Windows servers.  Assuming you leave the port to be assigned to 80, make sure there is nothing blocking it on the network or on the target Windows server.

Leave a comment

Your email address will not be published. Required fields are marked *