ESP8266 not getting enough power from wall adapter to turn relay on an off.

I connect my NodeMCU esp8266 to my computers microusb and it works just fine, I am able to switch the router on and off. But once I connect it to a wall adapter rated for 5v it just doesn't do anything. I tried switching the wall adapter several times and ive come to the conclusion that its just not getting enough power. How can I fix this?

Did you used the multimeter to check whether you are getting the same amount of power from microusb vs wall adapter. Change adapter if you can, or try building a 220 to 5v capacitive dropper of your own (which doesn't have a transformer, majorty of adapters have a transformer).