Results 1 to 2 of 2
  1. #1
    Psyclone is offline Member
    Join Date
    Jan 2010
    Posts
    81
    Rep Power
    0

    Default New to Networking

    I have a card game that I am building and want to make multi-player over the internet. I have a lot of code written so far, but I want to start working on the networking part of it.

    I've been doing a lot of reading and from what I can understand, I have to make the program an Applet in a web page. Then, people can come to my website, start the Applet and it will run on their browser. Is this correct?

    I don't have a web page yet. I see that web hosting services offer different features, such as FrontPage server extensions, PHP, CGI, ASP, MySQL databases, etc. My program reads and writes to 3 different Excel Spreadsheets (possibly more) and uses a lot of different images (jpeg's and png's) via JLabels.

    Are there any special features I will need from my web host?

    Any suggestions or feedback to find a good free web host that fits my needs and doesn't have a lot of advertisements, if possible?

  2. #2
    FON
    FON is offline Senior Member
    Join Date
    Dec 2009
    Location
    Belgrade, Serbia
    Posts
    366
    Rep Power
    6

    Default

    Most free hosting are LAMP (Linux Apache MySQL PHP) oriented and offer no
    java servlet container.

    But if you gonna use Applets you dont even need it.

    Simply create some Java applet (avoid using packages for simplicity)
    and some html page to call it.

    Then copy both html file and java *.class file to your site at same dir.

    Run applet through any java enabled browser,
    by URL that points to your html file.

    I use this free hosting
    Free Hosting and Free Web Hosting from the World's best Free Hosting provider x10Hosting

    Here's example of my simple java applet, no commercials on page :) :
    Insert title here

    View page src to see mine a.html file
    that contains BasicApplet.class in same dir

    Java Code:
    <applet code="BasicApplet"  width="150" height="200"> 
     
    </applet>

    Problem for you to solve:
    An applet has no access to local system resources unless it is specifically granted the access. Access permission is granted with a policy file.

    More about it here:
    Observe Applet Restrictions (The Java™ Tutorials > Security Features in Java SE > Quick Tour of Controlling Applets)

    good luck!

Similar Threads

  1. Networking
    By Psyclone in forum AWT / Swing
    Replies: 1
    Last Post: 02-26-2010, 05:41 AM
  2. Networking Help
    By rp181 in forum Networking
    Replies: 4
    Last Post: 09-20-2009, 06:09 PM
  3. Networking in Java
    By thangavel14 in forum Networking
    Replies: 3
    Last Post: 07-30-2009, 02:47 AM
  4. Qualifications in Networking
    By javaNoob2 in forum Networking
    Replies: 1
    Last Post: 03-16-2009, 07:47 AM
  5. Networking Problem
    By Ambuscade in forum Networking
    Replies: 21
    Last Post: 11-05-2008, 04:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •