Yukihiro Matsumoto <matz / zetabits.com> wrote: > try: > ruby -r socket -e 'TCPSocket::new("127.0.0.1", "80") > on you openbsd machine. Probably it fails. I think the reason is > getaddrinfo(3) on openbsd does not understand service names > represented by numeric strings. Then, your workaround should be Thank you for the suggestion, it sounded convincing, but it didn't work. When i do: ruby -r socket -e 'TCPSocket::new("127.0.0.1", "80")' or: ruby -r socket -e 'TCPSocket::new("127.0.0.1", 80)' I get: -e:1:in `new': getaddrinfo: name or service is not known (SocketError) from -e:1 When i do: ruby -r socket -e 'TCPSocket::new("localhost", "80")' I get: -e:1:in `new': No such file or directory - "connect(2)" (Errno::ENOENT) from -e:1 The last error makes even less sense to me. Once again, I apologize if this is something due to my ignorance, I am new to ruby. -jason