-
Notifications
You must be signed in to change notification settings - Fork 11
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
Phone can't connect to laptop on IPV6 router #4
Comments
Could you go to
on both your computer and your phone and copy and paste the info shown below? (or drag and drop screenshots) |
computer: phone: |
If you run the game on the computer then on the phone does it connect to the game if you go to |
Yes that works! Do I need to enable a port on the router or something? |
Sorry, I don't yet know what the problem is. It's going to take several steps to figure out the issue. I hope you can help me figure it out Could you please do the following? In Unity please pick "Window->HappyFunTimes->Settings" Then in the "Debug" area type Then run the game and copy the console output here As an example here's mine |
So fyi from what I see the browser is telling happyfuntimes.net that you have a machine at |
Hmmm, so Unity is using the ipv4 address instead of the ipv6 one? |
Are you on Mac or Windows? |
Another thing to test, does this work Mac
Windows
? |
Just double checking, from that same computer if you go to
you get this?
|
Oh... well I just checked again and now it says this for my computer checking: http://happyfuntimes.net/api/getgames2 |
It seems like your Windows machine is not using IPv6 but all your phones are. Can you check for example the network settings for you PC? Pick your ethernet or wifi adaptor, whichever you're using to connect to the internet then make sure IPv6 is enabled Otherwise there's also this script which is supposed to enable IPv6 (just incase it was disabled) |
Hmm well I checked the network properties and IPV6 is enabled, I also ran the microsoft script but it didn't change anything. I rechecked the happyfuntimes.net test and it returned the same, but about 2 minutes later I tried again and now it shows this: checking: http://happyfuntimes.net/api/getgames2 Phones still can't find my computer though through happyfuntimes.net. I feel like it might be my router maybe. I have some weird comcast router that has both a 2.4 ghz and a 5 ghz wireless networks that can be connected to. I am always connected to the 5ghz one but it seems complicated. Heres my full ipconfig if that helps at all. prob not great to have all this information out here publicly but whatever lol |
So I hacked some stuff into happyfuntimes.net that might make your situtation work? Please try running the game then going to happyfuntimes.net on your phone. If what I changed doesn't work please repeat these steps just so I can see if it's doing anything new. |
Yes that made it work now! Is happyfuntimes.net basically just a website you run that lets you change how the phones/browsers connect without having to redownload the library? thats pretty cool! Thanks for the help. I look forward to working on a new game with your library now! |
happyfuntimes.net is just a website that tries to redriect users to your local computer. So, instead of having to manually type Unfortunately it's not always trivial to figure out where to the send them 😅 |
BTW the code for happyfuntimes.net is here https://github.com/greggman/happyfuntimes.net if you ever want to run your own server (like if you have a hit game and you want people to go to myawesomegame.com instead of happyfuntimes.net) |
Okay, cool! Thanks again for all the help. Hopefully you didn't have to ruin your code too hard to get it working for me XD Happy holidays! |
Laptop can connect to localhost fine through browsers but no phones can find game. Same setup worked on IPV4 but when I switched to IPV6 it no longer works. Let me know of things I could try to provide additional info!
Thanks
The text was updated successfully, but these errors were encountered: