Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work zerotier #3

Open
imtrobin opened this issue Jun 6, 2017 · 5 comments
Open

Does not work zerotier #3

imtrobin opened this issue Jun 6, 2017 · 5 comments

Comments

@imtrobin
Copy link

imtrobin commented Jun 6, 2017

Hi, I'm trying WinIPBroadcast with zerotier (www.zerotier.com), and using Unreal/Unity games to test the LAN broadcast to find the games. It doesn't get to relayBroadcast, all filter out before hand.

I supposed they are using the same port to broadcast/receive, I see in the notes, that it wouldn't work in such case, but doesn't majority of LAN broadcast (for games) use the same port?

@dechamps
Copy link
Owner

dechamps commented Jun 6, 2017

You can use Wireshark to figure out where your packets are going and which ports they use. This might help shed some light on your issue.

@imtrobin
Copy link
Author

imtrobin commented Jun 26, 2017

Hi Etinenne, I have some time to test more. It does work when the ports are different. I use a seperate program to test. Wireshark shows the packet being relayed, good work!

Unfortunately, the games I'm trying is using the same ports. Can I ask where in the code this is being checked? I like to try disable it. Why would it not work for the when ports are the same?

@dechamps
Copy link
Owner

It is not checked anywhere in WinIPBroadcast, nor should it. Windows simply doesn't deliver such packets to the raw socket listening on the loopback interface, so WinIPBroadcast doesn't get to see them. I have no idea why - it's probably a quirk of the Windows network stack. Keep in mind this whole thing is a giant hack in the first place and relies on a weird undocumented behavior of raw sockets on Windows, so one can't really expect it to work reliably and consistently. Believe me, if I knew how to fix it, I would :)

Feel free to experiment and see if you can find a workaround. If you do, I would be happy to hear about it. You might also want to try one of the "alternatives" that are listed in the README.

@imtrobin
Copy link
Author

I see. that's why I couldn't find it in the code! Thanks for the explanation.

@ThymoNL
Copy link

ThymoNL commented Mar 27, 2020

For TCP I was able to find this: https://superuser.com/questions/1088309/windows-10-nat-port-forwarding-ip-masquerade

Most games however use UDP to find servers and above doesn't (yet) work with UDP. I haven't found anything that can solve that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants