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