Adding a DNS fixed it.
I thought the DNS was optional. It probably is, when your ESP8266 doesn't have to go to a URL (but only to IP addresses).
When 'talking' to other devices in the same network (based on IP) there's no need for a DNS.
So to me this makes sence.
Great, now I can fix and finish my project.