marceldev89 / BattleNET

BattlEye Protocol Library and Client
GNU Lesser General Public License v3.0
76 stars 44 forks source link

BattleNET connects even if RCon is not running on that port #3

Closed DomiStyle closed 12 years ago

DomiStyle commented 12 years ago

Hello, I am having a little problem with BattleNET which annoys me since some time. If you connect to a host that does not exist it will return a Invalid host error. But if the host is valid but on the port no RCon is running it won't return any error and just connect, without executing any of the command of course. This will lead in DaRT not being able to throw any error message. I added some checks to see if the entered IP is a valid IP and the port a valid port but this only helps to check if the host is valid. Would be nice if there is a way for you to fix this since alot of people are getting confused when DaRT still connects even if they didn't enter their RCon password properly.

marceldev89 commented 12 years ago

This is due to the UDP protocol, you can't really check if there's anything listening on a given socket. But I'll try to write a little workaround.