Funny "open port accident"

Questions about programming languages and debugging
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Funny "open port accident"

Post by ayu »

I'm developing a small car game for a project in uni.
4 players should be able to join and race in a small 2D game.

So, I was working on the server just now, and used a random port (in the range I usually do, thus the accident) to test how it would handle new connections with the changes I made to it.

It went well and the debug messages were all printed as planned
[Message] Listening for connections on "enma" on port 60000
[Message] A connection was established from "127.0.0.1"
[Message] Client "127.0.0.1" has joined the game
[Message] Sleeping 0.1 second(s)
Until all of a sudden, this turned up on my screen
[Message] A connection was established from "xxx-xxx-xxx-183-no79.xxxx.xxxx.com"
[Message] Client "xxx-xxx-xxx-183-no79.xxxx.xxxx.com" has joined the game
Someone outside of my network connected ...

Apparently the port I used to test the application was opened, and the server doesn't really have a protocol to follow at the moment, so it adds any client that tries to connect, to the player list. I use the same ports for just about everything, so it was out of pure habit that I used that port that caused the connection to reach the server. I was rather surprised, and had a long laugh before I continued ^^
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hehe, one of those 8O moments, huh? :lol:

was it a part of a port scan? :-k
Image

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

bad_brain wrote:hehe, one of those 8O moments, huh? :lol:

was it a part of a port scan? :-k
haha yeah, but I dunno if it was part of a port scan, might have been Oo
But I didn't really pay much attention to it afterwards ^^
"The best place to hide a tree, is in a forest"

Post Reply