Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (120)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Have my own threaded chat program, but what do I do with it?  (Read 3804 times)
0 Members and 1 Guest are viewing this topic.
Offline Swattkidd7

Junior Duke





« Posted 2008-05-01 02:12:13 »

Ok so i have created my own Threaded chat program and can run it on localhost and it all works, but now I want to make it available to my friends and all that...I know I can use Tomcat or w.e locally on my machine, but I didnt like doing that a long time ago because everytime i turn off my computer, the server would go down. But now im wondering how would I run the ChatServer from my website. I have CPanel, and a webhost, but not sure what to do from there..

Thanks.
Offline CommanderKeith
« Reply #1 - Posted 2008-05-01 02:31:11 »

You might be interested in this then:

http://www.java-gaming.org/forums/index.php?topic=18209.0

Offline Swattkidd7

Junior Duke





« Reply #2 - Posted 2008-05-02 03:18:37 »

Erm...i dont really want to pay for a service (and am not really sure what is going on in that thread) but basically i have a chatserver that runs on localhost and then the clients connect to it on localhost, i have created my own apache webserver on my machine so people could connect via my static ip but have removed that (and forgot how to get it back) but now have another web host and am wondering how to get my program to work with that...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 816
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3 - Posted 2008-05-02 05:46:39 »

Well, that service (in that thread) won't be up and running soon, as I'm way too busy at work ATM.


Anyway, you can't really expect a webhost to run your own application in a JRE on their servers for free. Except when it's written in PHP or some other scripting language. Cheapest option would be a Virtual Private Server, which costs 15-20$/m these days. Maybe I'm missing some service out there, but AFAIK you have to pay to get something that matches your requirements.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #4 - Posted 2008-05-03 00:11:25 »

You can try to adapt all your code to work with MySQL, and just use queries rather than any direct connections.

See my work:
OTC Software
Offline Swattkidd7

Junior Duke





« Reply #5 - Posted 2008-05-03 02:53:39 »

Well I mean im not expecting for this thing to end up being big and popular...i basically just want to test it out and have fun with it....but i ended up just hosting it myself....


thanks people.
Offline VoS

Senior Newbie





« Reply #6 - Posted 2008-05-29 19:52:52 »

You dont need an expensive host to play around with that stuff.

Most schools for example have really old computers ( 500Mhz or so ) that they just want to get rid of. A computer like that could run debian and act as a server from your closet for years to come, a 500Mhz computer could easily run your java application for several users (probably wouldent bother it to have 100 people in if you did it well).
I myself started this way after realizing that i wanted more control over my website than i got from free hosts. Now after a few years ive invested about 200 USD and have a passivly cooled quadcore with 4Gb ram and 750 Gb of HD space as my server. it stays in my closet and dosent make a noice and provides the perfect testing ground for all my wacky ideas =P
Offline Jackal von ÖRF

Junior Duke





« Reply #7 - Posted 2008-05-31 10:21:13 »

it stays in my closet and dosent make a noice and provides the perfect testing ground for all my wacky ideas =P
+1

Having a personal server is a must for any server side software developer. All you need is a cheap leftover PC, an ISP which does not block incoming connections to the important ports (80, 22 etc.) and a dyndns.com or similar hostname. Try to make it quiet so that it won't disturb you when running in a corner of your home.

If you notice that you need more power, you can upgrade the server later. I had first some years a "PIII 600MHz/384MB/2*160GB/Gentoo Linux" which I then upgraded a couple of years ago to "C2D E6300/2GB ECC/4*400GB in sw-RAID5/1000VA UPS/Debian Linux with Linux-VServer virtualization".

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #8 - Posted 2008-06-05 07:32:08 »

School connections (universities and high schools) often block incoming connections - so this option may not work for many budding developers.

See my work:
OTC Software
Offline VoS

Senior Newbie





« Reply #9 - Posted 2008-06-11 12:14:54 »

if its just for developpment you can always switch ports. Bind apache to port 900 and deliver your applet from there. If its a service you made then it shouldent be a problem at all since they wont block ports above 1024 (unless they are really daft in the head)..
So far ive never had any trouble with universities blocking my webserver Wink
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #10 - Posted 2008-06-27 16:19:27 »

if its just for developpment you can always switch ports. Bind apache to port 900 and deliver your applet from there. If its a service you made then it shouldent be a problem at all since they wont block ports above 1024 (unless they are really daft in the head)..
So far ive never had any trouble with universities blocking my webserver Wink
There's always something that doesn't seem to work, even if I switch ports. Maybe my kung fu skills are too weak.

But I'm not at a school anymore, anyway.

See my work:
OTC Software
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (42 views)
2014-10-16 15:22:06

Norakomi (32 views)
2014-10-16 15:20:20

lcass (37 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (66 views)
2014-10-14 00:35:47

TehJavaDev (59 views)
2014-10-14 00:32:37

BurntPizza (73 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45

BurntPizza (85 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!