Autor Beitrag
Stianbl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Do 15.07.04 01:02 
Hi again! :D (sorry if I post this one wrong too.. :wink: )

I was woundering if it was possible to make a program that searched some ports or something to find all the LAN games that was in a network..
Like you start the program and execute it, then it shows: counter strike, quake, and so on....
And even better, it shows some information! maybe the host ip, the map, and things that are possible to find!

If someone could help me with this, it would be really good! 8)

Thanks in advance!
DaRkFiRe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 526

WinXP Home & Professional
C, C++, Delphi
BeitragVerfasst: Do 15.07.04 01:26 
As those game are running over UDP you just have to broadcast a UDP broadcast message and waiting for responses from the servers.

Then you have the IPs so you can scan the servers very precisely. Scanning the subnet by trying to connect to each possible adress is less useful and very expensive in fact of net use.

_________________
Lang ist der Weg durch Lehren - kurz und wirksam durch Beispiele! Seneca
Stianbl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Do 15.07.04 01:45 
Thanks, but how do I do that? :D

<edit:>
Should I use NMEcho, NMMsgServ, NMMsg or something like that? and how?
</edit:>

Thanks in advance!
DaRkFiRe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 526

WinXP Home & Professional
C, C++, Delphi
BeitragVerfasst: Do 15.07.04 02:01 
Like i said: broadcast a message via UDP (take the indy udp client) to the corresponding port (UDP sends the broadcast in the subnet) and wait for the responses (please see the indy udp manual).

In my humble opinion you cannot use the components you named, because the set up other protocols than the UDP.


I'll go to bed now. Goood night.

_________________
Lang ist der Weg durch Lehren - kurz und wirksam durch Beispiele! Seneca
Stianbl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Do 15.07.04 02:04 
Thanks! :wink:
I will try to do it, but I didn`t understand so much of it! :?
Hehe.. but thanks anyway!
Stianbl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Do 15.07.04 16:07 
Ok, I don`t really know how to do this, so if anybody here knows how, please let me know! :wink:

Thanks in advance!

<edit:>
Please! Is there anybody that knows how to make a program that searches for lan games, and finds a bit information about it?
</edit:>