File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes ? on Sockets and user choice as far as picking server or local database? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "? on Sockets and user choice as far as picking server or local database?" Watch "? on Sockets and user choice as far as picking server or local database?" New topic
Author

? on Sockets and user choice as far as picking server or local database?

Jim Martin
Ranch Hand

Joined: Oct 31, 2002
Posts: 80
My application gives the user a choice to use the local database(i.e. the database on the same computer) or the server database.
My question is, if the user wants to use the server database, the user must know the IP address of the computer that the server is running on and enter that IP in my GUI. Is this good enough? That is, will this suffice, or will I lose some points here?
Did anybody do it the way I did and if so did you lose any points on this part?
Thank you very much!
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

To get to any server you always need to know an address. So it is perfectly fine and actually the only way you will be able to connect to the server.
Sometimes it doesn't need to be an IP address if there is a DNS entry. But don't worry about that.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Jim Martin
Ranch Hand

Joined: Oct 31, 2002
Posts: 80
Thanks for answering Mark.
So I am ok?
[ November 05, 2002: Message edited by: Ahoo Ahoojan ]
 
jQuery in Action, 2nd edition
 
subject: ? on Sockets and user choice as far as picking server or local database?
 
Similar Threads
Database connection
Remote Deploy EJB to Weblogic6.0
To network or not to network
Rock paper scissors project
Another advice... on the instructions.html document