Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 3rd, 2004, 7:41 AM   #1
DaVinci
Newbie
 
Join Date: Nov 2004
Posts: 2
Rep Power: 0 DaVinci is on a distinguished road
I'm working on a game bot for an online game. The original client is written in C, and i managed to convert the client/server protocol to my java bot application.

It al works fine, except i need to start the application from my home computer to get the bot appear in game.

Now i would like the app to run from some webserver so the bot will be online 24/7. How do i alter my code so that it will run from a webserver, and how do i get it there in the first place. Do i need a shell account with java support? and where can i find those.

Or is this a no go, becauce the app opens a socket to the server and sends data via TCP/IP. I can imagine that a server forbids these kind of actions for security measures.

I hope someone can help me out here,

Greetz DaVinci.
DaVinci is offline   Reply With Quote
Old Nov 3rd, 2004, 10:25 PM   #2
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
A web server is not going to do that for you unfortunatly. You can open TCP/IP connections from a webpage's backend code, but any secured server would have time limits on how long scripts in the background are permitted to run between page loads, it is something like 2 minutes... so you would need to keep reconnected to the server... not recommended.

The correct way to do this would be to have a dedicated server, or purchase console access which will allow you to run applications while not logged in (usually these accounts also permit you to run daemons)... java support would obviously be required, but I think that is pretty standard these days... just make sure.

A full dedicated server runs you up about $90USD/mo--but you pretty much own that server, you run anything you want on it.. install anything you want on it, and get 1.2TB data transfer/mo (no IRC server is going to break that).

I personally do not sell shell accounts without the whole dedicated server thing right now so I can not tell you how much the run for, but take a look around. The only catch with shell accounts is that they are always shared amoungst many users... and thus you will get what you pay for... low cost accounts will mean less CPU cycles for you, and slower transfer speeds.
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Old Nov 4th, 2004, 8:41 AM   #3
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
or you could just leave it running at home all the time.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Nov 4th, 2004, 9:25 AM   #4
DaVinci
Newbie
 
Join Date: Nov 2004
Posts: 2
Rep Power: 0 DaVinci is on a distinguished road
Okay thx,

I have done some searching myself..and running from home is an option..but the bot will have some downtime, cus i'm not the only user on the pc.

I found alot of hosts who offer shell access on their server, and alot of them also allow background task such as an irc eggbot. Will such a host also allow my kind of bot.....?

In fact they do the same tasks..it responds to other user requests with an pm..

But i'm not that familiar with those host..i need one with a Java interpreter so i can run my code...

If anyone has a suggestion please let me know,

Greetz DaVinci,
DaVinci is offline   Reply With Quote
Old Nov 4th, 2004, 10:03 AM   #5
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
Quote:
Will such a host also allow my kind of bot.....?
All you can do is ask.

as far as if your code will run on there box, you'll just have to ask em.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:24 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC