Solved

Traffic accounting

Posted on 2004-04-30
6
141 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 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