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

I want to make a menu
I’ve created the LAN session finder and it works fine (LAN listening server finder is done).

Now I want to do the same to search for servers on the internet.

But before using real server machines I would like to test locally if possible.

So I’m wondering if there’s any trick to simulate IP locally or something like that?
I have several real machines connected in LAN and I could also use some virtual machines.

I think it just IP issue.


This happens when I search for servers on LAN:

025.03.22-01.32.42:658][432]LogTemp: Verbose: Received 32 bytes from 192.168.1.199:14001
[2025.03.22-01.32.43:656][766]LogTemp: Verbose: Sending 32 bytes to 255.255.255.255:14001

This happens when I search for servers on INTERNET

[2025.03.22-01.42.38:688][731]LogTemp: Error: Failed to bind listen socket to addr (0.0.0.0:14001) for LAN beacon
[2025.03.22-01.42.38:690][731]LogTemp: Warning: Failed to create socket for lan announce port SE_NO_ERROR

If there is any way to simulate IP locally, please let me know.


NOTE:

I know I’ll probably have to program a server manager to find the servers… that gives me more reasons to start doing the first tests locally.


Thank you so much!!

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!!