# Address family for hostname not supported

**URL:** <https://www.ruby-forum.com/t/address-family-for-hostname-not-supported/103350>\
**Category:** Deployment\
**Created:** [May 4, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/address-family-for-hostname-not-supported/103350 "2007-05-04T16:27:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daxhuiberts](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/977dab/32.png) [@daxhuiberts](https://www.ruby-forum.com/u/daxhuiberts)\
**Post date:** [May 4, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/address-family-for-hostname-not-supported/103350/1 "2007-05-04T16:27:29Z")

</div>

I tried to do a cap deploy yesterday when it suddenly didn’t want to  
work anymore.  
It says “address family for hostname not supported”. After a lot of  
searching and googling and source code lookup I came to the following:  
On my development machine @ work (Windows 2003) there is a problem with  
the low level Socket.getnameinfo() call.  
When I try to do a Socket.getnameinfo([‘AF\_INET’, ‘22’, ‘[beeplet.com](http://beeplet.com)’])  
I get the above exception. but a Socket.getnameinfo([‘AF\_INET’, ‘23’,  
‘[beeplet.com](http://beeplet.com)’]) it works like a charm. It doesn’t have anything to do  
with what domain I use, it only happens when I use port 22 (ssh) in the  
method call. Everything worked fine 2 days ago and now, suddenly, it  
bails on me.  
Doing the above method call from my development machine @ home (Ubuntu)  
it all works just fine.

I don’t know how and why I get this exception and haven’t been able to  
find a sollution either. Maybe somebody knows something more on this  
topic?
