(using Ruby 1.8.7)
Sometimes I have trouble with Ruby binding to a port on my windows 8
machine. The two lines of code in my program relevant here are:
my_socket = UDPSocket.new
After a fresh boot, my program will always work. If my computer has
been on a couple of days, it might sometimes fail with a “permission
denied” at the bind statement line #. I even try running the ruby
program from a prompt with administrative privileges but same error.
I’ve been googling this like crazy and one common thought is to check if
some program has already claimed that port. There’s a netstat command
that will show you all ports in use and nothing close to 64001 is ever
I used to run this program on windows 7 and never had an issue.
Something about Windows 8 is throwing a fault. Any help appreciated.