ko4life-net / ko

Open source development of the game Knight Online. This is a reversed engineered old version of the game aiming to replicate the nostalgic experience we all once had <3
MIT License
48 stars 21 forks source link

Port 15100 might be occupied #198

Open sid2021 opened 1 year ago

sid2021 commented 1 year ago

Description

I'm trying to run the project locally using provided instructions but after compiling (All.sln) and running the code I'm getting:

KnightOnLine: Failed to connect to game server: [10061].
Port 15100 might be occupied.

I checked if the port 15100 is occupied in my OS (Windows 11) netstat -ano | findstr :15100 but it seems it's not the case.

Could you please provide some tips on how to tacle this issue?

Just for you information I made a local setup using: Visual Studio 2022 Community SQL Server 2022 Microsoft ODBC Driver 18 for SQL Server

Screenshots

image

stevewgr commented 1 year ago

@sid2021, yes, the error message is a bit misleading. I remember I had this issue and was trying to debug this once. I found out that the Windows API call for whatever reason was failing to create the socket. Probably system related or permissions, not sure, but as funny as it sounds, restarting my computer helped solving this issue. Let us know how you solved this, since it would be nice fixing this issue at its core.