Solution #2:Turn WiFi OFF, then ON on the receiving device
In some instances, the internal WiFi modem on your phone might not be able to directly connect to a wireless network, even if you have previously connected to the same network with no problems. Turning the WiFi OFF on the receiver phone and switching it back ON might be able to solve the issue.
To switch your mobile WiFi OFF and ON, swipe down on your screen from the top edge to get the Quick Settings toggles and tap on the WiFi icon.
Alternatively, you can also access this option by opening the Settings app on your phone, selecting ‘Network and Internet’, and then toggling the switch adjacent to wifi to off and then off.
Solution #2: Restart your phone
Modern smartphones work similarly to that of computers and most of the time, fixing an issue just needs a simple fix which is to restart the phone. When a device is restarted, many low-level problems get resolved as your device’s cache and logs are clearing during the reboot process.
You can restart an Android device by pressing and holding the power button on your phone and then tapping on the ‘Restart’ option that pops up on the screen.
Regards,
Willjoe