Why the server got so many weird connection requests?

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
vtv
In need of some credit
In need of some credit
Posts: 4
Joined: Wed Apr 21, 2010 6:36 am

Why the server got so many weird connection requests?

Post by vtv » Sun Jun 27, 2010 9:48 am

Hi,


I am having a big issue when I develop my server. Basically, server is listening on a fixed port from clients. I did some checking to discard those are not from my client. However, I got so many weird connection requests from an invalid socket. This will make our server couldn't do anything useful after running a while! All coming from one IP and they constantly requests to our server... this is for sure not sort of DoS attack.
To see why it's from invalid socket, I check the return value of accept() as:

Code: Select all

if( accept(ListenningSock,...) == INVALID_SOCKET) {
  
}
For more info, I am using winsock2.h Anyone can point me any reasons why?

vtv
In need of some credit
In need of some credit
Posts: 4
Joined: Wed Apr 21, 2010 6:36 am

Post by vtv » Wed Jun 30, 2010 10:22 am

Anyone have any clues???
I need it urgently!

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Fri Jul 02, 2010 10:40 am

Not directly. But try to reimplement this in something like python and see if this still happens. It sould be easy with one or two lines. If the strange requests happen there too there is a machine problem else there is a problem in wx.

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

vtv
In need of some credit
In need of some credit
Posts: 4
Joined: Wed Apr 21, 2010 6:36 am

Post by vtv » Mon Jul 05, 2010 5:47 pm

Jorg wrote:Not directly. But try to reimplement this in something like python and see if this still happens. It sould be easy with one or two lines. If the strange requests happen there too there is a machine problem else there is a problem in wx.

- Jorgen
Hi Jorgen, I did with Java and there seems no problem like such weird connection requests. I am wondering could it be from any services locally? such as NetBios SSN or such?
Anyone has any idea?

Post Reply