I don't have my PC connected thru wireless, and my keyboard is connected with PC. All the things is to be connected to the same network ip class. If you have a guest network activated on your router, your keyboard must NOT be connected to it.
Check your IP on your keyboard, and check your IP on your PC. First three pair must be the same.
Example: Keyboard IP: 10.20.30.2 (or, by default router settings could be something like 192.168.0.101) PC IP: 10.20.30.3 (or, by default router settings - 192.168.0.102)