Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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.