I don't know much about net coding. Now I'm using irrNetLite,it's quite easy to use . However I'd like to implement a function that can search active host in local area network, for example, like warcraft 3, you can see your friend have create a room for net gaming in local network and then connect with him.
But irrNetLite and other network library is in client/server mode. If I want to send message, I have to connect to server first. What if I want to know is there any server in my local network and get to know their IP in order to connect with them? How to do it?
Thx
How to search active host using irrNetLite?
Re: How to search active host using irrNetLite?
irrnetlite is defunct as far as I know. It's great to learn with but far from a proper networking lib. Networking is hard, simple as that. Learn it or use raknet or something else. Personally I'm trying to wrap enet to do my bidding. That will probably also fail, but that is how I learn. Trial and error.
As for getting IP's on your LAN - Local Area Network. You would need to broadcast from the server, which the client detects and puts on your LAN list of servers. Broadcast IS built in to at least one version of irrnet that I've seen, the functionality to detect, sort and display that information will more than likely not exist and require you to code it in yourself.
Or you can do it the old fashioned way on windows using a command console and the ipconfig /all command on the host, who would then physically tell you the IP or extension you're looking for.
As for getting IP's on your LAN - Local Area Network. You would need to broadcast from the server, which the client detects and puts on your LAN list of servers. Broadcast IS built in to at least one version of irrnet that I've seen, the functionality to detect, sort and display that information will more than likely not exist and require you to code it in yourself.
Or you can do it the old fashioned way on windows using a command console and the ipconfig /all command on the host, who would then physically tell you the IP or extension you're looking for.