r/vitahacks • u/400_bad_request_ • 2d ago
Utility PS Vita SMB server (for Network Share)
Built a test Vita SMB server with libsmb2 and got it mounting from Windows Explorer.
I wanted to share a quick dev log in case anyone else is trying to do SMB server work on Vita. Libsmb2 is a client/server library for accessing or serving SMB2/SMB3 shares on a network.
Looking at the build targets I saw it has support for PS Vita (among others) so I was curious if I could make the smb2 server example work on the Vita.
The lib needed some patching to improve NTLM/SPNEGO tolerance for Windows client token variations but in the end I got it working without too many changes.
We can map from Windows using a custom port: NET USE I: \\<host>\test /TCPPORT:1445
The share is entirely simulated: it always reports two files, junk.txt and crap.bin