Mac address/IP address

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.

Comments

  • : 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.

    Source adn Destination IP is a standard part of an http header. Right?!! der I MEAN TCP header duh

    [green]WHAT you;see_is_what=you.get;[/green]
    -Russ aka DangeRuss
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion