ID:166263
 
Ok, so how would you be able to LAN byond. I know you can do it; it says so the site. But what I dont get is were all the other players in the LAN can connect since it wont be online...
You can use BYOND in a LAN with routers setup. In place of the external IP address, one has to use the internal IP address of the computer in question.

If the computer has the ability to host externally using some kind of port forwarding scheme setup in the router, then internet users will be able to connect. If you wish to put in place some sort of "LAN mode" where only other computers in the same LAN are allowed to connect, you should use this little snippet:

#include <Deadron/TextHandling> //for the hasprefix() and hassuffix() functions.
#define LAN_MODE
world/IsBanned(key,address)
#if defined(LAN_MODE)
if(!dd_hasprefix(address,"192.")&&!dd_hasprefix(address,"10."))return 1 //disallow connections coming from The Internet(TM)
#endif
.=..()


If you type #define LAN_MODE, it'll reject users from the WWW.
In response to Android Data
Actually, when you turn on the LAN in My Network Places, just go into it and see what your IP address is for the LAN. Then set your port when you host the BYOND game. Everyone then can just use Open Location, and type in the IP address, a colon right after, then the port number. It should work.
In response to Partner420
Partner420 wrote:
Actually, when you turn on the LAN in My Network Places, just go into it and see what your IP address is for the LAN. Then set your port when you host the BYOND game. Everyone then can just use Open Location, and type in the IP address, a colon right after, then the port number. It should work.

"My Network Places" should only be listing hostnames; not IP addresses. While the hostnames do work, I'm still wondering why you put the word "Actually" in there since it actually doesn't contradict what I was saying.
In response to Android Data
I remember when I hooked my PC up with one of my friend's, things didn't work properly and I had to check the properties of the LAN itself under My Network Places. I noticed it saying an IP address and it kind of helped narrow down the problem why it wasn't connecting (he had Windows Firewall) so we just turned it off, the IP address changed from all the 0.0.0.etc... to an actual IP address.

But it's just a more convenient way. I'm not one to type in code just to have people connect to BYOND with a LAN. It's just much easier to do it with the IP address, hostnames, whatever works.

And as for my grammar, we all know I suck. Look at old posts of mine and correct ALL my mistakes, if you want. =P