I had a problem with this in a few locations, mainly my wife's parents place and I finally figured out how to solve it, but only if you have access to a device that is already connected and it depends on the config of your router. If you have direct access to the router that is even better but not required.
Steps:
1. On the device that is already connected find out the IP address assigned to it, and if possible the gateway address. The IP address will most likely be in the format 192.168.1.x or 192.168.0.x where x is a number assigned by the router. The gateway is most likely 192.168.1.1 or 192.168.0.1 depending on what the IP of the connected device is.
2. On your Wi-fi settings there is an advanced arrow select this
3. In the advanced options set the DHCP to static and set the following values
IP address: connected devices plus 1 e.g. connected device = 192.168.1.10, input 192.168.1.11
Gateway: most likely 192.168.0.1 or 192.168.1.1
Network prefix length: 24
DNS1: 8.8.8.8
DNS2: 8.8.4.4
Put in the password and you are done
One extra note: If you can access the router you can save the IP address for this device so each time it connects that address is saved. If you don't have access to the router config you may find that you can't connect one day because someone has taken your IP. Just change
IP to the next number that works.
Hope this works for you.