Internet Development

Moderators: None (Apply to moderate this forum)
Number of threads: 1024
Number of posts: 1892

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Mac address/IP address Posted by mstechca on 14 Jun 2007 at 5:35 AM
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.
Report
Re: Mac address/IP address Posted by CyGuy on 18 Jun 2007 at 12:44 PM
: 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

WHAT you;see_is_what=you.get;
-Russ aka DangeRuss



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.