Results 1 to 5 of 5
  1. #1
    etherkye is offline Member
    Join Date
    Jun 2009
    Posts
    17
    Rep Power
    0

    Default Self determing the server

    Hi there, the program i am currently trying to write will have one server and many clients over an internal network. The problem is i need to know how to let the clients know the servers IP address altomaticly. And apart from pinging every ip address to see which response i don't know how to aaquire it.

    Is there a more efficent method of getting the client programs to find the server when they turn on, or a way to make the server boardcast to every channel at once?

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    Tell the clients when you start them, either as a command-line parameter or as part of a configuration file.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  3. #3
    etherkye is offline Member
    Join Date
    Jun 2009
    Posts
    17
    Rep Power
    0

    Default

    Tell them what?

  4. #4
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    What the IP address of the server is.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  5. #5
    etherkye is offline Member
    Join Date
    Jun 2009
    Posts
    17
    Rep Power
    0

    Default

    Err, but i won't know what the IP of the server is though. I'm writing the program to sell as a package of a server and lots of clients. So the people buying it will be running the server on there computers, and i doubt they'll be computer literate.

Similar Threads

  1. Ping a server when server is not in the localhost..
    By kshitiz in forum New To Java
    Replies: 1
    Last Post: 03-19-2009, 10:17 PM
  2. smtp server configuration with jboss server
    By vilas_patil in forum Java Servlet
    Replies: 0
    Last Post: 01-05-2009, 02:18 PM
  3. Help determing NamingEnumeration type/cast
    By BlankMan in forum Eclipse
    Replies: 1
    Last Post: 09-05-2008, 08:50 AM
  4. Does any file in an FTP server ends up in an HTTP server?
    By islamfunny in forum CLDC and MIDP
    Replies: 4
    Last Post: 08-15-2008, 05:30 PM
  5. Replies: 2
    Last Post: 07-15-2008, 07:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •