Due to my areas internet provider (I live out of town) We are unable to port forward but I and a few friends want to play lan on a private FiveM server, Would that be possible to do, or do we need to port forward for the server to work
yup. easy one.
Locate these lines in your config.
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
alter the 0.0.0.0 part to your lan machine’s IP. “192.168.0.whatever”
that SHOULD only now accept traffic on that lan IP. not ALL interfaces such as internet.
having said that i would also disable server reporting so it doesnt show up in the server listings.
just add
sv_master1 ""
to your config as well.
hope that helps!
fyi that’s not how this syntax works - even for systems that can port forward, port forwarding will just send to the lan ip so that has no meaning
however the user said they can’t port forward so it makes no difference even if it did do what you said it does
if PCs still do have internet connectivity however it’s as simple as running the server on one PC and clicking the button in the main menu on all of them
Wdym by that?
Just don’t port forward, and your server won’t be accessible from the outside. That’s it. It will still work for your LAN.
Changing 0.0.0.0 to 192.168.x.y is only useful when your computer is connected to the Internet directly, with no router in the middle, which is only the case on dedicated servers, but on home PCs you almost always have a router, so changing that makes no difference.
well, that seems a tad vestigial…
why include the endpoint value as configurable if it’s not?
It is configurable. It’s also the case that a typical home PC has only one network interface, usually the one assigned to the LAN IP.
This configuration matches the syntax of the bind() syscall, and is not an access control filter.
See the reply above yours: