Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Traffic accounting

Posted on 2004-04-30
6
Medium Priority
?
147 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Loops Section Overview
Suggested Courses

971 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