CrazyEngineers Archive
Old, but evergreen and popular discussions on CrazyEngineers, presented to you in read-only mode.
@krishprateek • 27 Dec, 2012
can someone plz tell me as to how the ip messenger catches or recognizes the host name of all active users and how does it retrieve the ip address of all connected devices??? It wld be very helpful is someone could give me a quick answer
@rahul69 • 27 Dec, 2012 • 1 like Well, it uses Java Socket Programming to perform the above mentioned tasks.

Wanna know more? Well, it creates a multicast object and uses the methods like InetAddress.getByName() and other similar other methods to meet its ends. You can search for the InetAddress class to get more info 😁 .

Still want more? As this software is open source, u too can check the code for urself!! 😎 and ask any difficulties u face here.

Still got some doubts? You can ask us and we would be happy to help!👍
@krishprateek • 28 Dec, 2012 Thanxx for the rply.....but i actually dont want to get into the coding part.....i want to understand it frm the TCP/IP point of view....as to how it works at the layer level???😀
@rahul69 • 28 Dec, 2012
krishprateek
Thanxx for the rply.....but i actually dont want to get into the coding part.....i want to understand it frm the TCP/IP point of view....as to how it works at the layer level???😀
I think it happens in the following manner:
  • When the software starts, it broadcasts the packet to all computers on the Lan and those which have same software running responds.
  • Thus it gets a list of active users as hostnames are received as the response by the other computers.
  • Then it calculates the IP Addresses from the hostnames using getbyname() function told above.
  • The chat server starts running on a predetermined port to address the communication.
The software uses multithreading to handle different operations separately.
Hope it answers your query!😀
@krishprateek • 02 Jan, 2013 thanks a lot man.....the above info was really helpful...
8.4k views

Related Posts

@Dastan4eva · May 24, 2015

So this is a fairly common question in interviews . I'd like your views on how to tackle the situation when you really don't have a hobby or don't know...
5.5k views

@Ankita Katdare · Jan 8, 2016

Tata Sky has decided to make its service called 'Everywhere TV' accessible for free to all its subscribers. Back in 2013, the DTH operator had announced Everywhere TV on Tata...
4k views

@ravindra25 · Aug 15, 2009

tell me the some minor project ideas on mechanical engg.
10.7k views

@Chirayu Samarth · Dec 16, 2014

After launching Iris Fuel 50 last month, the Indian mobile vendor has now launched another budget smartphone Lava Iris Fuel 60 at Rs. 8,888. The company asserts that the smartphone...
3.9k views

@Kaustubh Katdare · May 28, 2015

I'm wondering what are the minimum hardware requirements for Android M. Google announced the latest version of Android at IO 2015 conference, but did not mention the release date or...
3.8k views