Woops. I think ip_address_list is closer to what you want.

http://www.ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/Socket.html#method-c-ip_address_list


On Sun, Oct 7, 2012 at 11:13 AM, Cliff Rosson <cliff.rosson / gmail.com>wrote:

> Use gethostbyaddr. Toss it in a string and send it along.
>
>
> http://www.ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/Socket.html#method-c-gethostbyaddr
>
>
> On Sun, Oct 7, 2012 at 10:20 AM, ajay paswan <lists / ruby-forum.com> wrote:
>
>> Hi how can I know my IP through which two computers communicate in LAN?
>> Like in socket, I wanna send my IP to the target machine.
>>
>> --
>> Posted via http://www.ruby-forum.com/.
>>
>>
>
>
> --
> http://about.me/cliffrosson
> vizualize.me/cliffrosson
>



-- 
http://about.me/cliffrosson
vizualize.me/cliffrosson