The main thing is that the esp8266 needs to have a sketch on it that contains the OTA update implementation.
For the IDE it is also required that your computer and esp are both connected to the same network.
Once this has been done the port should show up under ports in the IDE. This tutorial is not new, but should explain what needs to be done.