PCSX2 / pcsx2

PCSX2 - The Playstation 2 Emulator
https://pcsx2.net
Other
10.66k stars 1.55k forks source link

[BUG]: PCSX2 MacOS & Linux PCAP not connecting online #7650

Open LeyoSFO opened 1 year ago

LeyoSFO commented 1 year ago

image

Describe the Bug

when connecting online using "PCAP Bridged" or "PCAP Switched" the games would display this message: "You must have a network adapter installed in your PlayStation2 to play online", but if you choose "Socket" it would go online normally but can't host games or join them (tested with Syphon Filter: The Omega Strain)

Reproduction Steps

Tested on PCAP Bridged, PCAP Switched, & Socket Tested on MacOS Ventura but Ventura is not listed so i chose MacOS Monteray as it's the closest Also tested on Ubuntu/Linux

Expected Behavior

Expected behavior is for PCAP Bridged and Switched to work normally and for the games to detect a network adapter

PCSX2 Revision

v1.7.3735

Operating System

macOS (Monteray)

If Linux - Specify Distro

Ubuntu 22.04 LTS

CykaDelik commented 1 year ago

Having this exact same issue.

SteamOS (Arch Linux)

I have libpcap installed via Homebrew [https://brew.sh/] [https://formulae.brew.sh/formula/libpcap]

Bridged/Switched, PCSX2 can't find the Network adapter

Switching to sockets allows me to find the network adapter and connect to the server and create a lobby. No one can connect to my lobby, and I can't join any other lobbies. I can see other people's lobbies and they can see mine.

TheLastRar commented 1 year ago

Mac not supporting pcap is a known issue

PCAP on Linux should work, but do note the following; AppImage builds don't work with due to permission issues, you'll need to extract the AppImage with --appimage-extract Flatpack builds don't work with due to permission issues, try the workarounds listed here.

lunelovehearn commented 1 year ago

I have the same issue but under Arch Linux. pcap only works with the root account, but not under a regular user. this is a bug and should be fixed as it's not recommended to run everything as root/pcsx2 shouldn't be ran like this. I use the aur and flatpak versions and same issue.

weirdbeardgame commented 1 year ago

It's not a bug. There's specific groups your user has to be added to.

lunelovehearn commented 1 year ago

It's not a bug. There's specific groups your user has to be added to.

then, what groups should I be added to? mind elaborating the solution?

F0bes commented 1 year ago

I can't speak for the appimage, but the netdev group has fixed permissions for me previously.

lunelovehearn commented 1 year ago

that group doesn't exists on my arch system.

F0bes commented 1 year ago

Then add it.

lunelovehearn commented 1 year ago

Then add it.

did, then added myself to it then chgrp pcsx2 binary on /usr/bin the issue persists

lunelovehearn commented 1 year ago

any news?

TheLastRar commented 1 year ago

any news?

Can you post an emulog

faelana commented 1 year ago

I also have the same issue.

faelana commented 1 year ago

@TheLastRar I tried the flatpak configuration but it didnt work for me. @CykaDelik did you find a solution? @weirdbeardgame where can i see which groups should i add? @F0bes how did you come to netdev? @lunelovehearn did you find a solution? to me not even on root it works.

TheLastRar commented 1 year ago

@TheLastRar I tried the flatpak configuration but it didn't work for me.

Unfortunately not, PCSX2 has the same issue as wireshark under flatpak, which still doesn't support capture https://github.com/flathub/org.wireshark.Wireshark/issues/4

You will have to unpack the flatpak (or grab the appimage and unpack that) and use setcap to restore the missing capabilities

CykaDelik commented 1 year ago

@TheLastRar I tried the flatpak configuration but it didnt work for me. @CykaDelik did you find a solution? @weirdbeardgame where can i see which groups should i add? @F0bes how did you come to netdev? @lunelovehearn did you find a solution? to me not even on root it works.

Nah. I'm just going to wait for a native solution that doesn't involve any unpacking. Might be waiting for a while, heh Would love to play some Twisted Metal, BattleFront or MGS3 online on steam deck someday soon =)

faelana commented 1 year ago

@TheLastRar I tried the flatpak configuration but it didn't work for me.

Unfortunately not, PCSX2 has the same issue as wireshark under flatpak, which still doesn't support capture flathub/org.wireshark.Wireshark#4

You will have to unpack the flatpak (or grab the appimage and unpack that) and use setcap to restore the missing capabilities

./pcsx2-qt: error while loading shared libraries: libSoundTouch.so.1: cannot open shared object file: No such file or directory

is this included in the appimage? i cant launch without it.

lunelovehearn commented 1 year ago

no, on arch based on my testing, it works fine under root account, that is, using sudo pcsx2, tho user shouldn't run an emulator with root account. haven't made any more research so far.

lunelovehearn commented 1 year ago

any news?

Can you post an emulog

lemme figure out how to, then will post the logs of it under a regular and root user accounts.

devmni commented 10 months ago

Having this exact same issue.

SteamOS (Arch Linux)

I have libpcap installed via Homebrew [https://brew.sh/] [https://formulae.brew.sh/formula/libpcap]

Bridged/Switched, PCSX2 can't find the Network adapter

Switching to sockets allows me to find the network adapter and connect to the server and create a lobby. No one can connect to my lobby, and I can't join any other lobbies. I can see other people's lobbies and they can see mine.

I have the exact same problem. Connecting to a lobby works fine while using "Sockets", but i can't start or join any session. I tried this for Formula '05, Midnight Club 3, GT4 Online Public Beta and NfS Underground. Just Midnight Club tells me that an "NAT Negotiation error" occured after trying to start a session.

In PCAP it wont find a network adapter (no MAC shown in version info) and as sudo in only finds a network adapter in "PCAP bridged" but say's "No Cable connected".

Did you ever find an workaround for this?

Interestingly, one time (!) ever it worked with Sockets. Without any change: after a reboot not anymore and never again or before.

retlAairtlA commented 10 months ago

my pcsx2 have the same problem, but i only could make work when i change to "Sockets" (i install my pcsx2 from terminal, Linux Ubuntu 22.04)

madhavpcm commented 7 months ago

Like mentioned above, not running with appimages helps detect the network adaptor in PCAP Bridged and PCAP Switched. This was an issue with the PCSX2 which comes bundled with Lutris, but upon using the AUR version, the games are able to detect the network adaptor. However, I am not able to see a dhcp lease of the IP which I set in game in my router.

Also can anyone comment if I should use DHCP Intercept?

stenzek commented 7 months ago

We have nothing to do with the AUR. Speak to your packager for support.

madhavpcm commented 7 months ago

We have nothing to do with the AUR. Speak to your packager for support.

Sorry for the confusion, but I should have emphasised more on the fact that network adaptor gets detected if you are running natively (like building your self or as a package) it should work.

flyingv786 commented 5 months ago

In case it helps anyone, I was having trouble trying to connect with PCSX2 - Mortal Kombat Armageddon, and this was what worked for me (Sockets/Auto):

image

And with the connection settings within the game itself, I kept everything on Auto as well, but specified the Primary DNS manually.