Yeah, you should get a wired connection. Wifi will be inferior to wired ethernet in almost all situations.
If it's impossible to get a wired connection, then you could look into things like Powerline Ethernet Adapters, a WiFi repeater or WiFi Extender, or a WiFi mesh setup.
I don't use any of those, but those are some terms/devices you could look into