This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
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!!!
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.
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.
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.