Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Traffic accounting

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

721 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