Ways to Network.

Member
Posts: 277
Joined: 2004.10
Post: #16
Quote:OK, if so, they'll be able to play without membership, unless you jump through some hoops.

Well, in a manner of speaking...
They will only be able to play with poeple they know (IP address know)

Quote:The server app I'm talking about is the server software you have two write. You need to write the game, and then a central server application which is what you wre asking about in the first place. (The server that takes all your IP numbers and controls them)

Ok, is this a compiled application or CGI/PHP/ASP?
I have no idea where to start (for the server stuff)?

Hey thanks for the quick reply

Global warming is caused by hobos and mooses
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #17
Work through with the tutorials and I think stuff will clear up. Smile
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #18
Ok,

I found that that if CGI or PHP can get IP's then I can implement a login on a free server...
But if the computer freezez in the middle of a game the logout won't be recorded...
Meaning I'll have to log them out by hand...
Unless I add a logout page for that type of problem...
Then if poeple get there password they can log them out whenever...
Wreaking havoc on the player...
(and makes the game less entertaining if they have to do all kinds of technical stuff)



THANK!!!

Global warming is caused by hobos and mooses
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #19
YIKES,

I tryed telnet (in terminal)
telnet->telnet (my host name) 3490 (enter)

and it sits there saying:
trying 0.000.354.0 (IP address) (not exactly the same)

I'm trying the app 5.1 (server-stream-socket)

now the app wont quit (doesn't show up in force quit)

exactly how long am I suppost to wait...

I'll work with it a little bit longer..............

Global warming is caused by hobos and mooses
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #20
I didn't put:
telnet (my host name)

I put my host name in the place of "(my host name)"

Global warming is caused by hobos and mooses
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #21
Yeah, I got that. Smile
OK, so for some reason the server-stream-socket isn't working on your machine… tough luck, I don't really have the time to help you there (deadline coming up) but I'll give you a couple of tips:
• In the Terminal, you're in UNIX. Hence, you kill any app by hitting Ctrl-C (or closing the terminal window)
• I'm curious, what did you put to connect to yourself? Your IP number or "localhost"? Try localhost. (It should give you 127.0.01 for an IP back)
• To make sure nothing is really fishy with your machine, enter System Preferences, File Sharing and make sure FTP is turned on. Then telnet localhost 21 (21 is the port number for FTP) You should now be ftp:ing to yourself. Type "bye" and hit enter.

Hope this helps, if not, post back.
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #22
Ok,
it says:
telnet connect to address ::1: Connection refused
then says:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost FTP server(lukemftpd 1.1) ready

I then type bye and enter...
I get the error:
500 '"bye"': command not understood
(I expected this) (but it could still be "fishy")

I'll work with it a little more and see if I can get it to work...

I was trying the computer name (found in sharing prefs) not localhost...
(it was probebly that)

Thanks for the quick reply,
BinarySpike
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #23
YESSSSSS!!!!!!!!!!!

I got it!!!!!!!!

I had to change just the correct port number (3490) instead of 21
YESSSSS!!!!!!!!!!!!!

THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Global warming is caused by hobos and mooses
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #24
Ok, all I need now is the static IP of my server and the information on how to connect
(so that the php document (or perl) will activate)
and I'll be all set Grin Grin Grin

THANKS EVERYBODY.

Global warming is caused by hobos and mooses
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #25
Oh, just for anybody looking here...

PHP can create a server app that logs-in and logs-out the IP addresses Smile

(You create a time-out for computers that freeze and a logout for computers that logout)

So all in all you have about a 30 second delay (very good)

Global warming is caused by hobos and mooses
Quote this message in a reply
Kaamoss
Unregistered
 
Post: #26
This is just a silly idea but you could easily have your server side app also write data to the msql server for your website to keep track of who's online and who's not. Keep the server updating the database and the users on the client end simply query the database. Only downside is that if you have limited bandwith on your server it could cause quite a drain. That's how I'd approach it though. This way, also, your website could show who is online and who is not.
Quote this message in a reply
Moderator
Posts: 771
Joined: 2003.04
Post: #27
And now, for my next voodoo trick: thread... RESURRECT!!!

Ooops... somebody beat me Rasp
Quote this message in a reply
Member
Posts: 469
Joined: 2002.10
Post: #28
We need a thread de-bumper. So we can kill zombified threads. Or, if we have one, we need to inform Kelvin of said feature's existence.

step 3) ...
step 4) Profit!!!

---Kelvin--
15.4" MacBook Pro revA
1.83GHz/2GB/250GB
Quote this message in a reply
Moderator
Posts: 613
Joined: 2004.09
Post: #29
kelvin Wrote:We need a thread de-bumper. So we can kill zombified threads. Or, if we have one, we need to inform Kelvin of said feature's existence.

step 3) ...
step 4) Profit!!!


Yea ok but whats step 3? Grin

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  java network api San_Andreas 1 3,207 May 1, 2008 08:05 AM
Last Post: AndyKorth
  Getting network connection for a specified PID Florian 6 5,006 Dec 23, 2006 03:46 AM
Last Post: Florian
  Network play David 15 7,598 Apr 10, 2003 05:56 AM
Last Post: rvangaal
  Network Programming henryj 9 5,443 Jan 6, 2003 07:42 PM
Last Post: henryj