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 Do i need host to setup server?!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Do i need host to setup server?!!" Watch "Do i need host to setup server?!!" New topic
Author

Do i need host to setup server?!!

Ricardo Estafan
Ranch Hand

Joined: Mar 29, 2004
Posts: 84
Hello all,
when is start up server i ask the database location, port and host.
But now i am confused do i really need the host, i don't seem to use it actually....
Here is a piece of my code when i set up the server :

can somebody help me on this one?!
Thanks a lot!!!
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
Basically, you dont need a remote host for development.
You can use 127.0.0.1 as the IP of the remote server, and simulate the remote situation.
Of course, after finishing the development, you may need to have 2 machines over the net, in order to test the remote connectivity.
Nick.


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Ricardo Estafan
Ranch Hand

Joined: Mar 29, 2004
Posts: 84
Mmm i don't understand what your saying,
i use localhost as a default, is this wrong?
I use it for client host and in my server(where i am not sure i really use it...)
i guess you only need a host then when setting up client properties, defaulting to localhost.
but what do you mean :
You can use 127.0.0.1 as the IP of the remote server, and simulate the remote situation.

Thanks for the help!!
Satish Avadhanam
Ranch Hand

Joined: Aug 12, 2003
Posts: 697
Hi Ricardo
Originally posted by Ricardo Estafan:
Mmm i don't understand what your saying,
i use localhost as a default, is this wrong?

I think this is what is required for project. My understanding is that when started in server mode, all we need to ask is port number to listen and database file. Which means that server will start on the machine where we had run the application. For the scope of the project I don't think we need to start the server on a different machine by taking host or IP.

I use it for client host and in my server(where i am not sure i really use it...)

As you know, for remote client we need host and port to connect. This is where host is required in the project.

Thanks for the help!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do i need host to setup server?!!