Solved

Traffic accounting

Posted on 2004-04-30
6
135 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now