There's no documentation for this item.
# File webrick/utils.rb, line 49 def getservername host = Socket::gethostname begin Socket::gethostbyname(host)[0] rescue host end end
<code/>
<pre/>
<code/>and<pre/>for code samples.