Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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  
  Showing the port to user yes/no, and coping with server attack?  (Read 1855 times)
0 Members and 1 Guest are viewing this topic.
Offline Karmington

Senior Devvie

Medals: 1
Projects: 1

Co-op Freak

« Posted 2010-01-14 14:03:34 »

Is there any risk involved in showing to user what port is being used
for game traffic? I'd like to just pass the port number as a parameter, which would
expose it to anybody who looked at the page source.
I assume somebody who wanted to crash a system would be able to find it out the port
pretty quickly anyway, and then spam the server to hell...
Any ways to control that possibility?

I'm building a simple system which would let in x amount of players, and put the
rest in a holding pattern or queue, and only allowing them to check the line every 1 minute
while the room is full.

Assume the server does crash for whatever reason, guess I would have to write another program that would check if the server
is running and reboot it? Or is this all overkill in the prevention zone...

Offline zoto

Senior Devvie

Medals: 4

« Reply #1 - Posted 2010-01-16 02:01:26 »

Anyone connected could find out the servers IP and port number by doing "netstat -n" in a windows command prompt, I'm sure there is similar for other OS's. Writing a separate program that starts the server thread, and also restarts it if it ever dies, should be fairly easy.

It sounds like your main concern is people who would crash the server to to jump the queue, if so maybe you could store the in game and waiting lists in some kind of persistent storage on the server like a file or database.
Offline ddyer
« Reply #2 - Posted 2010-01-16 19:58:25 »

Coping with professional quality spam-flood attacks is a difficult subject, but to a first order approximation, it's only a problem in an alternate universe where you are already incredibly popular and well known.

At the amateur "pissed off user" or "broken client" level, all your server has to do is refuse unwanted connections based on simple criteria such as the number of connections from one IP.
Pages: [1]
  ignore  |  Print  

EgonOlsen (45 views)
2018-06-10 19:43:48

EgonOlsen (27 views)
2018-06-10 19:43:44

EgonOlsen (47 views)
2018-06-10 19:43:20

DesertCoockie (210 views)
2018-05-13 18:23:11

nelsongames (127 views)
2018-04-24 18:15:36

nelsongames (126 views)
2018-04-24 18:14:32

ivj94 (867 views)
2018-03-24 14:47:39

ivj94 (128 views)
2018-03-24 14:46:31

ivj94 (779 views)
2018-03-24 14:43:53

Solater (143 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!