Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

how to start the server

 
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
i've made a server which i want to run on www.abc123.com on port 5000. The application run locally but what is the process of running this server on the web site . What exactly is to be done ?
PLease guide me a a bit.
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nothing. You just start it on abc123.com. The only real issue is the firewall. If the firewall blocks all inbound traffic on port 5000 then no client will be able to connect. Or if the machine running the server is using a NAT server, then only the server can initiate communication in most cases.
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Michael Morris:
Nothing. You just start it on abc123.com. The only real issue is the firewall.


That's what i want to know . How do i start it ???
Do i have to include my jar file in some sort of batch file of the web server so that when the server is started , the jar file( server) is invoked. The site runs on:
Apache/1.3.26 (Unix) ApacheJServ/1.1.2 mod_perl/1.26 PHP/4.1.2 on Linux.
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I assumed you were the adminitrator or owner of the server on abc123.com. If not, then you will have to get with the administrator to start the server. If the node is ran by a web hosting service, that's not likely to happen.
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Michael Morris:
I assumed you were the adminitrator or owner of the server on abc123.com. If not, then you will have to get with the administrator to start the server.


i need to make the admin of abc123 understand how the server would start so please if you could guide me a bit on how we are goinf to go about it .
Thanks in advance
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by raghav mathur:

i need to make the admin of abc123 understand how the server would start so please if you could guide me a bit on how we are goinf to go about it .
Thanks in advance


Did you write the server? It would be best to jar it up. If you provide adequate documentation to the admin, then he should have no trouble strarting it up. Are you sure that the admin is going to do this for you?
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Michael Morris:

Did you write the server? It would be best to jar it up. If you provide adequate documentation to the admin, then he should have no trouble strarting it up. Are you sure that the admin is going to do this for you?


Yes . i wrote the server . I've also jared it . Now the only issue is how and from where on www.abcxyz.com should i run this jar file ?
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, since you wrote it and presumably tested it, wouldn't you know better than I how to start it? Maybe I'm misunderstanding your question or there is some issue that I don't understand. If the server is started on the machine whose DNS name is www.abcxyz.com on port 5000, and the firewall is not filtering inbound traffic on port 5000 then that should be all there is to do.
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK
i'll be more specific .
I've made a chat server which would run on port 5000 on www.abc123.com .
Locally on a lan i just have to double click the jar file and the server would start but when uploaded on the web site what will be the procedure for running it.
Will the path of the jar file be included in some sort of batch file ?
Its a linux server and the web server is apache as i had mentioned above
Am i clear now ?
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI
The issue has been resolved. I,am able to connect to the chat server.
One last issue :
I want to connect to the database from a remote cllient which is outside the web server. When i try to connect to it , it gives me an exception:
"NoRoutetoHostException"
This is the exception which occurs when i change the DB user to "root" and when again change it to the actual original one , it gives me "Acess Denied"
According to the administrator he has set the permission for the database so that client besides localhost can access the database .
Still i,am not able to connect to it :
The syntax is :
String url = "jdbc:mysql://xxx.xx.xxx.xxx:3306/dbname?user=xx1&password=xxpass";
Any suggestions?
Thanks in advance
[ July 01, 2003: Message edited by: raghav mathur ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic