Hi.. I need a java program to find out the bandwidth in LAN.. Please help me in solving out this problem soon... Thanks in advance..

Recommended Answers

All 5 Replies

Create a Socket connection between two programs running on different machines on the LAN. Send a lot of data (megabytes) from one to the other and record how long it takes.
You'll find all the info you need on Java Sockets by searching the web. Come back here if you get stuck.

how to retrieve those socket information?? Can u please describe it in coding..

www.google.com - if that's too hard then give up now.

There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in coding your homework for you.

DaniWeb Member Rules include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/forums/faq.php?faq=daniweb_policies
http://www.daniweb.com/forums/announcement8-2.html

Can we calculate the bandwidth by adding the file size and the network throughput? Is it a correct way..?

Bandwidth is Megabits or Megabytes (whichever you prefer) per second. So you divide the file size by the time. Eg 100 megabyte file takes 5 seconds, bandwidth is 20 MBytes/sec or 160 MBits/sec

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.