Solved

Traffic accounting

Posted on 2004-04-30
6
137 Views
Last Modified: 2010-04-05
Hello. I have machine under Windows XP connected to internet. I need to configure this PC to be gateway for another device in our LAN and count how many bytes has been sent from this device via my machine. How can I do this? Device uses many ports in range 4000-7000, so I can't make a simple proxy for this.
0
Comment
Question by:tViruz
6 Comments
 
LVL 3

Expert Comment

by:Kunfufaresi
ID: 10963954
Hello,

I don't there is any easy way for this, i searched and found some pages and products

at torrys page

http://www.torry.net/pages.php?id=285 there are some component for LAN

the Fnugry Netstat Components v.1.00 might be what you are looking for it says Delphi3 but i dont think you will have any problem on later version since source is included.


also this product might do it

http://www.datawizard.net/Products/ViewPoint/viewpoint.htm

this is from their site

 
 ViewPoint is a high performance ActiveX/COM DLL for Windows 9x/NT/2000 that allows developers to query, watch, and diagnose a machines network activity. Available data includes information on current TCP/UDP connections, interface card information (such as the IP addresses and MAC addresses of cards present) and counters, over 60 TCP, UDP, ICMP, and IP stats and counters, Net To Media information (underlying info on media such as netowork drives), plus route table information!

Using ViewPoint is simple. Once you have an instance of the component setup, simply call the  ConnectionRefresh method to refresh connection information (for any of the properties starting with 'Connection'), and then any of the methods or properties to get IP address, port, or other connection or statistic information.

The following is a brief list outlining some of the features that ViewPoint offers:
 
 Access to network information via an ActiveX/COM component (can be used by any environment that can use an ActiveX/COM component)
 
 Supports querying of over 60 different stats and counters from TCP, UDP, ICMP, and IP protocols
 
 Provides the ability to query information about current TCP and UDP connections, including local hosts, remote hosts, local ports, remote ports, and connection status to facilitate connection monitoring applications
 
 Supports querying of network card information such as MAC address, ethernet card speed, MTU, card description, and more
 
 Supports querying underlying information about net to media connections, such as IP address
 
 Supports querying of route table information, including route destination, interface index, next IP hop, and more
 
 Supports querying of network address information for all local IP addresss, such as subnet, broadcast address, and more (supports multi-homed machines)
 
 Lightweight component built with MSVC++ 6 and ATL 3.0 is under 200K, and requires no other files to be redistributed
 

Kunfu Faresi
0
 

Expert Comment

by:jamesr123456
ID: 11022375
this link might be of use for traffic monitoring:

http://delphi.about.com/library/weekly/aa112903a.htm

"A free network (Internet / intranet) traffic (download / upload) monitor. Network traffic monitor allows you to quickly and easily examine the network usage of the local computer. Full Delphi source code included. "

0
 

Author Comment

by:tViruz
ID: 11218116
This connection is done throu NAT. Anybody?.. :-/
I'll increase points.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 13323175
PAQed with points refunded (250)

modulo
Community Support Moderator
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question