0

hi guys , i have a query
if some group of people are using the same java application and are connected via LAN . It is like in the java application , i want to expose other people ip address , so that i am able to send message via LAN .
you guys got any idea how shd i code it ?

4
Contributors
3
Replies
4
Views
12 Years
Discussion Span
Last Post by freesoft_2000
0

here's the method:

try {
          InetAddress inetAdd =
              InetAddress.getByName(input.getText());
          output.setText(inetAdd.getHostAddress());
        }
        catch (Exception e1)
        {
          output.setText("ERROR");
        }
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.