Kodi brings us all of our favorite entertainment in one place. And to add icing on the cake, it also allows us to stream content stored on other devices over the network. Kodi provides different options to stream the content from network devices. We can stream content using different protocols such as the smb protocol, NFS protocol, and the UPNP/DLNA protocol. But since we are Kodi users, we deal with errors and bugs day in and day out. So, while sharing files over the network, you might have got the Kodi Invalid Argument error. If you are looking for solutions to this error, follow the methods shown below.
Fix Kodi Invalid Argument Error
If you are facing issues streaming files over the network then there can be different possibilities behind it. Follow these simple steps to get rid of Kodi invalid argument error.
Method 1: Restart your Kodi/PC and the network device
This is a universal fix to most of the common issues we face with Kodi. So before doing anything else, try restarting your Kodi or even better restart the device you have installed Kodi on. You can also try restarting the network device from which you want to access media.
This simple fix can most of the time solve your issue with the smb client or whatever protocol you are using. If the problem still persists, try the below methods.
Method 2: Update your Kodi
If you are still using a Kodi version below 18, then you might face the Kodi Invalid Argument Error. Because the versions below 18 use the SMB 1.0 protocol which has security issues and is vulnerable. Install a newer Kodi version above 18 and make sure it uses SMB 2/3 protocol rather than the SMB 1.0.
To check the SMB protocol version, go to settings → Services → Click on the gear icon bottom until you enter Expert View → SMB Client and make sure it shows SMBv2 and SMBv3 as a minimum and maximum protocol versions.
Note: The above settings aren’t visible if you have installed Kodi on Windows OS.
Method 3: Make sure the SMB share settings are correct
If you are using the SMB protocol for file sharing, then make sure you have entered all the required information correctly while setting up the network device. Here’s a quick way to enter the proper SMB settings:
1) Open Kodi.
- Click on the gear icon on the top-left to open settings.
- Open “File manager”.
- Click on “Add source”.
- Click on “Browse” to add a network location.
- Select “Add a network location”.
- In the settings menu, give your network device a name, and add its address by clicking on the “Shared folder option”. You can also click on “Browse” to manually browse the shared folder if it is already added to your PC.
- Click on “OK” and your network device will be set up successfully. Now you can browse the content over the network.
If the smb settings are correct and you are still facing the Kodi invalid argument error, then read on the steps below.
Method 4: Check file sharing permissions on your device
If you are using Kodi on a Windows PC, then make sure you have all the file-sharing options turned ON and all permissions are granted.
Here’s how to do it
- In the start menu, type “sharing” and click on the second result “Manage advance sharing settings”
- On the settings page, make sure “File and Printer Sharing” and “Public Folder sharing” options are turned ON.
- Click on “Save Changes”.
Now you have turned ON file sharing over your Windows PC. Now if you are sharing a folder on the Windows PC, make sure you have granted file sharing permissions for that folder.
- Right Click on the respective folder and click on properties. Go to the “security” tab
- Make sure your username is listed there. If not add the user and grant permissions to it.
Method 5: Enable NetBIOS on your router and Host
The NetBIOS allows different computers connected over a network to communicate with each other. If you want to share files over the network, you have to make sure you turn it ON. The first step is to turn it on in your router settings. Depending on your router, you may find the NetBIOS option in the settings, turn it ON. Then you should do the same in the host device that you are sharing files from. You can do that by enabling the NetBIOS option under the WINS protocol. If you are using Windows as a host, follow the below steps:
- Open Network and Sharing Center and click on your current network connection to open its settings.
- Click on the “Properties” option at the bottom.
- Double click on the “Internet Protocol Version 4 (TCP/IPv4)” option.
- Click on “Advanced”.
- Navigate to the “WINS” tab.
- Click on the “Enable NetBIOS over TCP/IP” radio button.
- Click “OK”.
This will solve your Kodi invalid argument error.
Method 6: Turn on SMB 1.0 for Windows 10
If you are using Kodi on Windows 10 and still have not resolved the issue then this is the last option you can try. You can turn on SMB 1.0 on Windows 10 which will enable file-sharing through Kodi.
You can do that by opening Programs → Click on “Turn Windows features on or off” → Click on “SMB 1.0/CFS File Sharing Support” → Check the “SMB 1.0/CIFS Client” option.
We do not recommend this approach because the SMB 1.0 protocol is vulnerable and has issues. Nevertheless, you can also try upgrading the Kodi application on your Windows 10 machine to a version above 18.
Sharing your favorite media over the network is a great option when you have all your content stored on different devices. Kodi provides different ways to access shared files on your network. While sharing the files you may get an “Invalid Argument Error” due to many reasons. While restarting your Kodi/PC can be a quick fix, there can be other reasons behind this error. Make sure you follow the steps given in this tutorial to solve the error. We also recommend keeping your Kodi updated so that you are less prone to errors and bugs.