PaulJenkin / PS4RaspberryPi

PiZero to host a server and emulate USB loading when necessary
230 stars 45 forks source link

Issues with Internet over Wifi #46

Open FalconX14 opened 2 years ago

FalconX14 commented 2 years ago

The first time when everything is set up, everything works (enabling wifi, in wifi router give the PI a static IP and so on). The next time I boot up the PS4 and go in the browser to my static IP of the PI: it doesn't connect, Wifi is set to my local Wifi network with the primary DNS of my PI.

Is the PI (in my case PI Zero) permanently storing the Wifi password or does it forget the password everytime the PS4 is powered off? Does the PI Zero Jailbreak Image has a problem with a certain Wifi password encryption type (I use WPA2)?

ajaybnl commented 2 years ago

I'm having V11 issue as following:

when i enable internet mode . Set ps4 to my local wifi and dns to (Pizero IP address which is static).

I cannot auto jailbreak. (the pizero never appear as keyboard).

I cannot jailbreak (The page loads, but the pizero never appears as usb drive).

notimp commented 2 years ago

I'm having V11 issue as following: when i enable internet mode . Set ps4 to my local wifi and dns to (Pizero IP address which is static). I cannot auto jailbreak. (the pizero never appear as keyboard). I cannot jailbreak (The page loads, but the pizero never appears as usb drive).

Sounds like a port forwarding issue. or a typo while entering the ipadresses.

I have both PS4 DNS entries set to the PIs IP, that might "help" as well, or not.

The first time when everything is set up, everything works (enabling wifi, in wifi router give the PI a static IP and so on). The next time I boot up the PS4 and go in the browser to my static IP of the PI: it doesn't connect, Wifi is set to my local Wifi network with the primary DNS of my PI.

Is the PI (in my case PI Zero) permanently storing the Wifi password or does it forget the password everytime the PS4 is powered off? Does the PI Zero Jailbreak Image has a problem with a certain Wifi password encryption type (I use WPA2)?

This sounds like a static ip issue, as in you are absolutely sure that the IP is static? If yes, there might be an issue with how the Wifipassword is stored. So maybe there are some "nonstandard" characters in the password that throw of the script, while reading or storing the password. (As in, the routine storing or retrieving the passwords, might not be coded well).

I can assure you that WPA2 isnt the problem: ;) And that Version 11 works on a Raspberry Pi Zero 2 W as expected. Passwords are stored after power down. Everything is automatic, everything gets recognized, it just works.

Another possibility could be a faulty sdcard.

The problem with issues, where the PI "is not found" after entering the IP address is networking. So basically, you have to understand what your router does. :) And thats a pretty steep learning curve.. :) First step is to check if the IP is static (doesnt get randomly set (assigned), on every router reboot f.e.), second step is to check if port forwarding is blocked. (Normally within a home network, all ports for IPs within the same (sub)net are open (traffic gets switched not routed) - but with Internet service providers routers these days, who knows), if you cant figure it out with that kind of information, complexity kinda explodes, and the steep learning curve starts. Its not too complex (so anyone can learn it), just a little complex... :)

If you want to learn it - buying a router that supports tomato (alternative firmware), is a good entry point to learn. Start here: https://old.reddit.com/r/TomatoFTW/

DD-WRT is another alternative router firmware, that might support more models, but usually is even more granular - so I like tomato better. :) Easier to get into.

ajaybnl commented 2 years ago

As I said, the up address and dns address is set correctly and the web page redirects correctly to Pizarro. The problem comes in "USB Emulation not occurs" while Wi-Fi and password is set. To connect rpi to internet.

notimp commented 2 years ago

As I said, the up address and dns address is set correctly and the web page redirects correctly to Pizarro. The problem comes in "USB Emulation not occurs" while Wi-Fi and password is set. To connect rpi to internet.

There is no direct causal relationship (in principal). There might be one thats related to a bug.

So "while connecting to the internet" only means, that after setting that up, the PI changes IP addresses (under which IP it can be accessed). If you can access the PI via the web interface (in connect over the internet mode), the issue shouldnt be related to IP address, routing, or password storage.

So - at this point a few possibilities are open.

Is the "call" where the PS4 browser loading the portal, telling the pi to initialize USB emulation broken? (Its not on a Pi Zero 2 W, in my home network.)

Is something on the routers end "blocking" that call. (Then you get into networking issues, and you asking yourself if all ports are open (if in the same Lan/Wifi (Lan and Wifi arent seperate networks, so thats fine) all ports on the Pi should be open to be addressed by the ps4 browser.) Is your router blocks that communication call between those two, it still fails.

Is your sdcard faulty?/Did something go wrong with flashing the image onto your sdcard?

Is it a timing problem? Because so much with this setup relies on timings (scripts with fixed delays) - others have posted here, that f.e. as soon as they plug in a USB drive, they have to add 40 seconds of delay, for the automatization feature to work. But if you have an issue triggering Goldhen manually (clicking on activate the goldhen exploit (its named differently :) ) in the browser interface) doesnt work, thats not the issue.

A few additional relationships. If it were a timing issue - you'd need to try a faster sdcard, or wait for people with raspberry pi zeros (not 2W) to confirm that the build is fully working for them.

If your router is blocking the call, you need to learn networking troubleshooting (steep learning curve).

If the sdcard is defect, you need to replace it/try to reflash the image.

If its a bug all Pi Zero W users are suffering from, its either a timings issue (Pi Zero not fast enough to handle Wlan, and scripts with the correct timing), or a bug in the Pi Zero Ws code specifically.

Everything works fine (in connect Pi to the internet mode) on the Pi Zero 2 W.

ajaybnl commented 2 years ago

Anyone with Pi Zero (Not Zero 2) working Jailbreak, while Your Internet Router SSID Connected? Please report here.

FalconX14 commented 2 years ago

Had some time now, to test this one once again and it still doesn't work. The PI's IP is static, I'm connected to my local wifi (with PIs IP as primary DNS), I can reach the PI on the PS4 with the IP of the PI, but Internet doesn't work. Wifi is enabled on the PI, password is set. WPA2 Password of my local wifi contains numbers and letters. When connected to my local wifi, the PS4 doesn't list the PI Zero under wifi networks anymore - a bug (?)... like the PI Zero is not really connected to the Internet, after enabling wifi in the menue. Disabling wifi on the PI, the PI Zero gets recognized again from the PS4.

PS4 connected to local wifi with automatic DNS and accessing the PI with the static IP is working, PI as client in local network/wifi; definitly not working.

nwg5817 commented 1 year ago

I have a Pi Zero and a Pi 2 Zero. I was using a Pi Zero before I got my 2 zero. I was using Build 10 and the wifi was working properly. I recently received the 2 zero and performed the same steps with build 11 version 2 and I cannot connect to the Pi from it's static IP. I will need to test the original Pi Zero on build 11 as well and see if I'm having the same issues. Static IP and DNS setup the same as before on 2 zero and I can't connect.