Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: the address of all connected machines to the network

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default the address of all connected machines to the network

    hi,
    how can I find the adress of all connected machines to the network,with InetAdress and thanks for any help


  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: the address of all connected machines to the network

    What did you try so far? Did you try to google it?
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  3. #3
    Junior Member
    Join Date
    May 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: the address of all connected machines to the network

    InetAddress IPaddress = InetAddress.getByName(ipaddr);
    ServerSocket serverSocket = new ServerSocket(Integer.parseInt(serverPort, 0, IPaddress);

Similar Threads

  1. Replies: 6
    Last Post: July 16th, 2013, 04:21 AM
  2. Code not working on other machines
    By Coty0010 in forum Java Theory & Questions
    Replies: 14
    Last Post: April 3rd, 2012, 05:33 PM
  3. How to Find machines connected to a network
    By JavaPF in forum Java Networking Tutorials
    Replies: 1
    Last Post: June 18th, 2011, 08:47 AM
  4. How to Find machines connected to a network
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 1
    Last Post: June 18th, 2011, 08:47 AM
  5. Why rs...still connected
    By javamula in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 30th, 2011, 03:53 PM