From: Cliff Rosson Date: 2012-10-08T03:15:12+09:00 Subject: Re: know my IP in LAN --90e6ba10b087ebf44e04cb7c153f Content-Type: text/plain; charset=ISO-8859-1 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 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 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 --90e6ba10b087ebf44e04cb7c153f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Woops. I think ip_address_list is closer to what you want.

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


On Sun, Oct 7, 2012 at 11:13 AM, Cl= iff Rosson <cliff.rosson@gmail.com> wrote:


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/.




--
vizualize.me/= cliffrosson



--
= vizualize.me/cliffrosson
--90e6ba10b087ebf44e04cb7c153f--