I am developing a DOS application which uses the internet.
As it stands, I can send and receive raw packets.
I am also able to retrieve the MAC address of my own machine, but I need the IP address so that I don't have to send broadcasts.
Basically my DOS application uses the UDP protocol. Because this runs over IP, a destination IP address and a source IP address are required.
Please tell me the steps in retrieving the local IP address (by sending raw data or accessing a function in FTP's packet driver specification from crynwr.com).
If you want to use code, use 16-bit assembly code, or Qbasic code. Please do not use C code, as it will take me a while to understand it. Thanks.