Question
#1

What does lanmode 0 and 1 like whats the difference?
Reply
#2

Nothing Differnce xD
Reply
#3

"Turning lanmode on will result in the server using more bandwidth, this mode makes the server a lot more accurate though. You can turn lanmode on by changing the value to 1 and you can turn it off by changing the value to 0. By default this is set to 0"

https://sampwiki.blast.hk/wiki/Server.cfg
Reply
#4

lanmode just makes your server speed better. if you do lanmode 1, your server won't have any lags, but requires greater bandwidth from you. If you do lanmode 0, your server will have/won't have any lags, but will take less bandwitdh.
Reply
#5

Quote:
Originally Posted by Vinnie Robardo
Посмотреть сообщение
lanmode just makes your server speed better. if you do lanmode 1, your server won't have any lags, but requires greater bandwidth from you. If you do lanmode 0, your server will have/won't have any lags, but will take less bandwitdh.
Oh, how clueless you are.

Anyway, lanmode just improves stuff like player sync. It's called lanmpde because of the huge toll it takes on the bandwidth usage. Bandwidth is a less important factor on local network hosting than it is with public hosting.
Reply
#6

Uhm doesnt it enable LAN (local area network) mode? So you can play over your Local Area Network.

Like if I open a server with lan mode 1 then someone using the same router (network) as me can connect without having to do so through the internet.
Reply
#7

Quote:
Originally Posted by weedarr
Посмотреть сообщение
Uhm doesnt it enable LAN (local area network) mode? So you can play over your Local Area Network.

Like if I open a server with lan mode 1 then someone using the same router (network) as me can connect without having to do so through the internet.
I also thought so in my early samp days, but lanmode has nothing to do with lan itself. It mainly changes the network update rates (or changed it, i think it was deactivated some time ago and now has no function at all). Now there are the *_tick options in the config that do this.

The server itself is always open on all available IPs (unless you use bind with multiple network interfaces). When in the same network, packets will never go "through the internet", as the external IP is the router itself, and the router readdresses those packets to the assigned local ip.
If the router shouldnt filter this by itself, the packets will just go to the next node, and then get sent back to the router, increasing ping by something like 0.5-1ms. But theres no software way to prevent this, a server running in some network cant tell the router to redirect packages, just the router itself can.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)