how to use java on websites (for applications)?
i am 100% internet retarded so i could use some help.
i want to get a cheap web hosting package to make a
website for my java apps.
on my computer i can write a program that binds to a port
at my ip address and people can connect. can i do this with
a web hosting package?
how do i run the program? where is the JVM? how do i know
the port for the server to bind to, etc?
an example would be like those java games online where people
can connect and play and record scores and stuff.
basically im just looking for the name of technologies or things
to look/ask for from a service to do this. thanks!
# 2
> I don't really know what you want.
If i knew what i wanted id be researching web hosting packages that offer it right now. : )
essentially i want to put my java application server on the internet
instead of on my computer.
i was reading that very few web hosting services offer a private JVM.
i see java applets / games online where people can connect and
play together. what technology(s) is that utilizing?
i have no familiarity with jsp/servlets and dont know what they are and
what theyre for (outside of my wikipedia reading).
i just want to know what kind of services i should be looking for.
# 4
yea. its just a desktop chess application.
my IP changes and im behind a router so its hard to get
connections to my computer. i figured i could have a central
server to manage the connections online.
and later maybe having other applications running on the website that people can connect to.
# 5
> yea. its just a desktop chess application.
> my IP changes and im behind a router so its hard to
> get
> connections to my computer. i figured i could have a
> central
> server to manage the connections online.
> and later maybe having other applications running on
> the website that people can connect to.
Well now I am more confused...
Here are the options.
1) If you want to run your service program on a server you're going to need some sort of virtual server hosting package. When people say Java hosting they usually mean Servlet/JSP hosting in a Servlet/JSP engine/container.
But this does not appear to be what you need. You appear to need to be able to just run whatever you want. There are virtual server hosting packages out there for fairly cheap... although as always a caveat in that you tend to get what you pay for.
2) You could just have a website with a servlet (not neccessarily Java could be ASp or PHP or whatever you like) acting as a webservice. You could send your IP of your server to the service. Then clients requesting a connection would get the current IP from your webservice.
3) You could do like (2) but without the webserver, use DNS instead. There are some services for providing DNS for dynamic IP's about.
*********************
It should be noted that if you want to do applets then probably based on your description you will need to sign them. Generally speaking applets can only connect to the server from where they were downloaded from.
# 6
Thanks. Number one I guess.
I hate applets, lol. I was just using those applet games as an example.
All I really want to do is to write some java program that people can
connect to and host it on the internet. I will go research " virtual server" hosting packages.
Thanks again for your patience and help!