Any way to simulate internet connection locally? (Dedicated server vs Listening server)

After some research I found that I can assign different IPs to virtual machines.
They are private IPs so I’m not sure if it will work… but it’s better than nothing.

Then I found this video to program the Master Server (Sockets + MySQL) I think there will be no problems with this.

But now I wonder why the hell these options exist.
If OnlineSubsytem only finds sessions on LAN

Why is there a boolean to enable queries on LAN? (bool bIsLanQuery)
If LAN Query is disabled (False).. Where else is someone going to do the query?
LAN Bacon? → (0.0.0.0:14001) for LAN beacon → What’s that? And why are the IP zeros?

And also there is not option in the structure to specify IP or ports.

Well… I just have to try the virtual machines and see if it works.

If anyone knows in advance whether it will work or not, I would greatly appreciate it if you could let me know. It could save me a lot of time if I knew in advance that I was going to do something that wasn’t going to work.

And the post is still open in case anyone contributes better solutions.

Thank you so much!!