• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do i need host to setup server?!!

 
Ricardo Estafan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ricardo Estafan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic