OTA using Arduino IDE - Network port disapeared.

I have some sketch with OTA (using Arduino IDE) capability. I have uploaded it to the ESP8266 board over usb, Network port appears in Arduino IDE. I have disconnected ESP8266 board from PC and connect it to power supply only. I was able to OTA with the same code with no problem. But after that network port is gone. What am I doing wrong? My PC and esp8266 are definitely on the same IP network, although my PC has few network adapters with different IP subnets, may this be a problem?

Actually, what is criteria for IDE to show (or do not show) network port? How this mechanics work?

it is mDNS. the ArduinoOTA library configures it and starts the responder

Juraj:
it is mDNS. the ArduinoOTA library configures it and starts the responder

O, yes, I am using mDNS in this project. But I did not understand what is the problem with it, it is not compatible?

Still did not get your point, sorry. Do you mean it is conflicting? So, what to do, remove either mDNS or OTA? or they can co-exists?

the linked code initializes mDNS for IDE network port.
How should I know if it is in conflict with what you do in your code?

Juraj:
the linked code initializes mDNS for IDE network port.
I should I know if it is in conflict with what you do in your code?

ok, got it, thank you, will remove mDNS, i do not really need it :slight_smile:

mDNS was not a problem.

In both cases (with mDNS and without) I have the same behavior: load sketch over usb - network port appears, restart Arduino IDE - network port disappears, after that restart esp8266 board - network port appears again.

How it should work, is this normal behavior?

How Arduino IDE knows to show or not to show network port?
Seems like esp8266 sends packet to Arduino IDE only on power up, Arduino IDE is always listening, and network port is there when Arduino IDE got this packet. is this correct?

SergeS:
mDNS was not a problem.

In both cases (with mDNS and without) I have the same behavior: load sketch over usb - network port appears, restart Arduino IDE - network port disappears, after that restart esp8266 board - network port appears again.

How it should work, is this normal behavior?

How Arduino IDE knows to show or not to show network port?
Seems like esp8266 sends packet to Arduino IDE only on power up, Arduino IDE is always listening, and network port is there when Arduino IDE got this packet. is this correct?

there are always problems with this.

i have 3 laptops
one old slow acer i3 w7 , ota works always
one recent hp i5 but upgraded w7 to w10 , hardly ever works
one new hp i7 w10 , works most of the time nearly always
i suspect its a windoze thing
tried every thing bonjour on / off different versions . nothing helped

Right .Nothing helped. Courious !