Set network port for upload?

so i had been using jeelabs esp-link on an esp8266 to flash arduinos with arduino ide. after setting ‘arduino’ as the mDNS server name on the esp, it shows up in arduino IDE as an available upload port. for a variety of reasons i recently switched to VS Code with the platformio extension and i cant figure out how to emulate this here. i dont have any experience using avrdude directly and minimal experience with platformio at this point but i believe that i have to add some flags to the platformio.ini file? somthing about port 23?

If I read that doc correctly then avrdude just has to be given the upload port flag -P "net:esp-link:23", where esp-link is the hostname of the network device and 23 is the port.

The upload port is controllable with upload_port in the platformio.ini.

I’ve tried this with the platformio.ini

platform = atmelavr
board = uno
framework = arduino
upload_port = net:arduino:23

and, looking at the “Verbose Upload” log, this does the correct invocation

Use manually specified: net:arduino:23
avrdude -v -p atmega328p -C C:\Users\Max\.platformio\packages\tool-avrdude\avrdude.conf -c arduino -b 115200 -D -P "net:arduino:23" -U flash:w:.pio\build\uno\firmware.hex:i

avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16
         Copyright (c) 2000-2005 Brian Dean,
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\Max\.platformio\packages\tool-avrdude\avrdude.conf"

         Using Port                    : net:arduino:23
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: net_open(): unknown host "arduino"

avrdude done.  Thank you.

So of course in my network there’s no mDNS host arduino available and fails, but avrdude gets the right info and tries to connect to it, so it should work in your setup. If the hostname thing fails, try replacing arduino with the direct IP address.

yes! that still failed but it definitely tried! i saw the esp blink when i clicked upload so i think the issue is with my wiring, ill play with it again in the morning. thank you!!