aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes how to start the server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "how to start the server" Watch "how to start the server" New topic
Author

how to start the server

Raghav Mathur
Ranch Hand

Joined: Jan 12, 2001
Posts: 641
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.


Raghav.
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
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.


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Raghav Mathur
Ranch Hand

Joined: Jan 12, 2001
Posts: 641
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

Joined: Jan 30, 2002
Posts: 3451
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

Joined: Jan 12, 2001
Posts: 641
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

Joined: Jan 30, 2002
Posts: 3451
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

Joined: Jan 12, 2001
Posts: 641
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

Joined: Jan 30, 2002
Posts: 3451
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

Joined: Jan 12, 2001
Posts: 641
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

Joined: Jan 12, 2001
Posts: 641
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 ]
 
 
subject: how to start the server