I am attempting to download a file hosted on a localhost file server.
- I am hosting a file named "Zephyr" using "python3 -m http.server 8980"
- I am using a zeth interface and the "overlay-e1000.conf" to allow qemu to communicate with localhost. I successfully tested the LWM2M client example to ensure the connection was good.
- I can download the Zephyr file when I input "http://192.0.2.2:8980/zephyr" into a web browser.
- I attempted using the "overlay-ci.conf" file to perform the download.
however I get the following error:
Preparing HTTP GET request for http://192.0.2.2:8980/zephyr
addrinfo @0x6da008: ai_family=1, ai_socktype=1, ai_protocol=6, sa_family=1, sin_port=1423
Iteration 1 of 1:
sock = 0
[00:00:00.000,000] <inf> net_config: Initializing network
[00:00:00.000,000] <inf> net_config: IPv4 address: 192.0.2.1
[00:00:00.000,000] <inf> net_config: Running dhcpv4 client...
Error: connect(sock, ai->ai_addr, ai->ai_addrlen)
I managed to get the example to download the online vmlinuz file, however I cannot get the sample to download via localhost.
Do you have any suggestions on what steps I could have missed?
Could it be a DNS issue? for downloading the online vmlinuz file I used 18.104.22.168 as CONFIG_DNS_SERVER1. For localhost, I left it at 192.0.2.2