FLOCK4H / AtomDucky

WiFi Rubber Ducky with a web interface using CircuitPython
55 stars 13 forks source link

ValueError: Only IPv4 addresses supported (Raspberry Pi Pico W) #2

Closed MDRafi08642 closed 2 months ago

MDRafi08642 commented 2 months ago

Model: Original Raspberry Pi Pico W.

Note: Due to space issues, I have deleted logo.svg, favicon.ico, ducky.svg.

I have also modified "buttons.py":

import digitalio, board
from neopixel import NeoPixel

pixel = NeoPixel(board.GP13, 1, brightness=0.2)
button = digitalio.DigitalInOut(board.GP12)

Everything should work fine, but there was an error: ValueError: Only IPv4 addresses supported.

Serial monitor via Putty: Screenshot 2024-08-24 213934

FLOCK4H commented 2 months ago

This error pops up when there is non-IPv4 address passed, you need to check _config file, make sure the address is in a correct IPv4 format, add a print statement to the code and print the address that is being passed, to make sure that the one from _config file is readable.