You cannot. Sony shut down the PSP Ad Hoc Party servers in 2014, ending official local-wireless matchmaking over the internet.
Why It's Gone
Server infrastructure retired.
Security vulnerabilities in the Ad Hoc protocol.
Shift to PlayStation Network (PSN) for online play.
Modern Alternatives
Native Online (PSN): Many PSP games (Monster Hunter Freedom Unite, SOCOM, Resistance: Retribution) have built-in infrastructure mode—still works if you sign in to PSN.
PPSSPP Emulator (Netplay): Best option. Use PPSSPP on PC/Android with built-in Ad Hoc emulation (via Pro Adhoc Server or ZeroTier) for lag-free local multiplayer over internet.
Vita/PS TV: Play PSP games with native Ad Hoc locally (two Vitas/PS TVs) or via AdHocParty homebrew plugins.
Remote Play: Stream PS3/PS4 games to PSP (limited titles).
For authentic Ad Hoc multiplayer today, PPSSPP netplay is the gold standard.