View Full Version : How do I determine my ServerPort value??

04-01-2003, 07:47 PM
Hi all!!

.....long time, no visit!!

First of all-----to the Moderators of this site:

I have been using the "Search" feature for, like, 2 1/2 hours, to find the answer to my question-----but, to no avail-----so I apologize if it is here, somewhere, and I just wasn't using the right terminology, when searching. Secondly, I don't know that I'm posting this in the right place------my question has several "elements"-------so, wasn't sure where to put it------again, if I goofed I apologize------and, will find this, wherever you need to move it to!!!



Members/Visitors------here is my question:

I have developed------well, it's not quite finished yet-----a game that I would like my sister and me to be able to play, over the Internet.......

it's written in JavaScript......

I would be using my home computer as the server (PWS).......

I got the idea that I needed an applet(?), possibly, to use:

<param name=ServerPort value=>

If I don't need to use an applet, what do I use (what's the coding/language/whatever); where do I insert it------and, how do I determine my server port #??? I've seen where people have said they tried this port------and that port......

I even saw where somebody posted a code that performs a loop, and gives you all the values......

didn't work for me------I know I'm not doing it right, though.....


I'm trying to password protect the page------having an opening page where one would type-in (submit) a username and password------have already coded it correctly-------it works and everything-------the only problem, is that it doesn't check t'see verify the password------it takes you directly to the game, even if you leave the fields blank!!! I know this is a big damn "Duh"------but I haven't been able to figure-out how to get it to "verify"!!!

(The reason why I want it protected, is so that our game/the URL can't be found in a search engine.......

it is my understanding that this can occur------even if the


is NOT used!!!

Anyway------sorry this is so long------any help you can provide, is greatly appreciated!!!

THANKYOU, in advance!!


04-01-2003, 07:58 PM
Use a robots.txt file (http://www.robotstxt.org/wc/robots.html) to keep it from being indexed whatsoever. If the robot can't read your site, the robot can't index your site.

04-01-2003, 08:05 PM
hey there Tree. it's usually a lot easier to help, if we can see the code. usually, i'd ask you to post the code here, but sounds like there might be a lot of it, so can you link us the pages this is all on?

unless you mean to set it up so that you and your sister will be playing on two different computers, i don't think you'll need to set up a server. if that is what you want, then i'm pretty sure that you don't need a java applet at all, but my knowledge revolves more aound javascript, and not so much around anything to do with servers.

04-03-2003, 11:10 PM
Hi Y'all!!

.....sorry it took me so long t'get back here-----I sure do appreciate your responses!!

Choopernickel: I went to that URL------looks like that'll do the trick-----THANKS!!!

joh6nn: HI----long time, no "see"!!!

Yeah, the coding is real long-----but I shortened it, and put it here:


Yeah, my sister and I will be playin' over the Internet, from two different states-----in "real time"-----using my home computer, as the server!! I figured-out I don't need a Port #-----just the URL!!

What I'm trying t'do, is make the game so that I/we can:

DEAL (Shuffles Cards)
PLACE CHIP (person places a chip on a card at the top [white area], that matches card in hand)
Place COPY of card, where chip was placed, into "Discard Pile"
HOLD CARDS (click in box, to hold 6 cards)
DRAW (gives you ONE new card)
EVALUATE BOARD (person who has most chips, wins)

I only put one row of cards in the white area------takes too long to load, with more than that.....

I think it will only work------well, NOTHIN' works, right now------in Internet Explorer......

I'm "brand spankin' new" t'this JavaScript------and, what I've done here------besides, make a mess!!!!
......is, "spliced-up" several different games!!!

I've got a book that gives a LITTLE help, for JavaScript------plus, all the on-line tutorials, I've done------but......


ANY help you could give me, in tryin' t'figure-out where I've gone wrong, would be GREATLY appreciated!!

THANKS, ahead of time!!!

The Tree

04-04-2003, 04:05 AM
Tree, i hate to tell you like this, but i think this may be a project you want to put on hold for a while, until you've done some reading on both javascript, and servers. see, the only way you'll be able to interact with your sister, is by reading & writing on the server. but, while javascript has a VERY limited file reading capability ( and one which wouldn't help you here anyway ) and no file writing capabilities. which means that you'd have to use some server side language, like perl or php, for at least part of this. i have no experience with any serverside languages, or with setting up a server. other people here in the forums do have that experience, but nonetheless, i suggest reading your javascript book all the way through, first, and reading up on servers, and server side languages.

04-04-2003, 03:11 PM
Thanks, so much, for your input, joh6nn!!

This has been just an aside------I figured it would take awhile------and, ALOT OF STUDYING------so that's cool!!! I've only been studying and playin' around with it, for, like, three weeks------so I'll keep pluggin', along!!!

Again, THANKS------you're the best!!!

BTW------I noticed you've become a moderator, since I was here, last-------KUDOS!!!

Take real good care,