• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Network Tools

If it is directly related to the code, PM. If general, this thread. We don't want to fill this thread with technical jargon. :)

We don't?!?!?!? :twitch:

I really need to write a print engine as well but really have no need. By the way, the TextFile and CSV code is presorted (according to what is in the list view) so it is just a matter of getting it to a spooler.

Yeah, that's what they all say.

I think the output looks fine :)

Brown-Nosing wienie. (j/k) :D

I'll try running it on a 32-bit machine...

I haven't tested n2b5 at work yet (was fighting all day with ComboBox event .. Arrgggh), but I can check it tomorrow. Home is x64 Vista, work is x86 XP.
At work I am running on a domain, but I have full admin rights to everything. I guess that is because I'm the only one in the IT department.
"Kneel before me and beg, lowly users of my domain!!" :roll:
 
I ran Beta 5 on Windows XP Pro 32-bit and Windows Vista Home Premium 32-bit without problems.
 
Just ran n2b5 on Vista x64. No problems.

Interesting TR to TPU ..
Code:
Network Tools 2.0.0
Trace Route
-------------------

Results:
+-----+-----------+----------------+--------------------------------------+
| Hop | Time (ms) | IP Address     | Host Name                            |
+-----+-----------+----------------+--------------------------------------+
| 1   | 1         | 10.10.10.50    |                                      |
| 2   | 3019      | 10.32.0.1      |                                      |
| 3   | 1809      | 10.242.20.1    |                                      |
| 4   | 1679      | 10.242.30.25   |                                      |
| 5   | 1789      | 10.242.30.1    |                                      |
| 6   | 1493      | 10.242.100.2   |                                      |
| 7   | -1        |                | Request timed out.                   |
| 8   | 2409      | 10.242.110.2   |                                      |
| 9   | 1603      | 63.227.232.221 | ewr-edge-10.inet.qwest.net           |
| 10  | 1832      | 67.14.7.30     | ewr-core-02.inet.qwest.net           |
| 11  | 3534      | 205.171.17.158 | ewr-brdr-03.inet.qwest.net           |
| 12  | 1600      | 4.68.111.69    | ge-4-16.car4.SanJose1.Level3.net     |
| 13  | 2272      | 4.68.99.62     | ae-32-52.ebr2.Newark1.Level3.net     |
| 14  | 2403      | 4.69.132.101   | ae-4-4.ebr2.Washington1.Level3.net   |
| 15  | 2438      | 4.69.134.158   | ae-92-92.csw4.Washington1.Level3.net |
| 16  | 4496      | 4.69.134.141   | ae-91-91.ebr1.Washington1.Level3.net |
| 17  | -1        |                | Request timed out.                   |
| 18  | 2370      | 4.69.132.85    | ae-2.ebr3.Atlanta2.Level3.net        |
| 19  | 3278      | 4.69.134.21    | ae-7.ebr3.Dallas1.Level3.net         |
| 20  | 1678      | 4.69.145.136   | ae-3-80.edge3.Dallas1.Level3.net     |
| 21  | 3603      | 4.71.198.18    |                                      |
| 22  | 2313      | 66.228.118.203 |                                      |
| 23  | 2387      | 66.228.118.182 |                                      |
| 24  | 1494      | 74.86.91.2     | www1.techpowerup.com                 |
+-----+-----------+----------------+--------------------------------------+

From WI, to SanJose, to Newark, to Washington, to Atlanta, to Dallas.
I wish I could get frequent flyer miles for my packets. :D
 
Different machine (netbook Atom), different anti-virus, 32bit

Capture042.jpg


DrWatsn32 is not showing any diagnostic data. Anything i can do to help you track this down?

If not 32bit issue, what about international settings? Or physical location/folder of nettool.exe?
 
Last edited:
It should auto-negotiate all international settings (namely datetime) and it doesn't use any international stuff until you do something.

Nettool should be able to run from anywhere except the ZIP archieve (it might work but don't count on settings saving/loading).


Maybe double check that .NET 2.0 is installed? It would be under Add/Remove Programs labeled as "Microsoft .NET Framework 2.0 Service Pack 2"

Ion's error and your error are remarkably similar ("Application has encountered an error...").
 
The print engine is going well. :rockout:
It can be easily extended for more functionality as it implements basic classes and interfaces.
The code will be reusable in other apps if you want. I didn't put it into a library, so you will have to snag the code out of the NetTool project if you want to reuse it.

My s/w quality tester (the toolroom manager. lol) at work is on vacation for the next two weeks, so my coding load will be almost zero at work. So unless something takes a total crap on the network, I should be able to work on it almost exclusively.

I can also include an option to print the output using the freely redistributable Crystal Reports runtime that VS uses. You would have to include the files in an installer if you wanted to do that, so I will leave that up to you.

Were you planning on including an installer, or just let people run the exe from whatever directory they extract it into. Installers are nice as they check for dependancies and guide people to update/install what they are missing (like .Net Framework versions, etc.).
 
It can be easily extended for more functionality as it implements basic classes and interfaces.
The code will be reusable in other apps if you want. I didn't put it into a library, so you will have to snag the code out of the NetTool project if you want to reuse it.
I habitually snag. XD


I can also include an option to print the output using the freely redistributable Crystal Reports runtime that VS uses. You would have to include the files in an installer if you wanted to do that, so I will leave that up to you.
I'd rather not...


Were you planning on including an installer, or just let people run the exe from whatever directory they extract it into. Installers are nice as they check for dependancies and guide people to update/install what they are missing (like .Net Framework versions, etc.).
I wasn't planning on making an installer because there is nothing there that warrants it (multiple files in multiple directories, multiple registry entries, other apps need to find it, shortcuts needed, etc.). I could make an installer for it just to make sure .NET is available but that will have to wait until the very end of developement.
 
I habitually snag. XD

I lol'd. I do too. Most of the coding I do is a one-up deal, and I don't tend to put things into libraries. If I was writing software for distribution I am sure I would give it quite a bit more thought, but that is not the case at the moment.

One thing that I do, however, is that if I find a solution to a problem I post it in P&W on TPU so that if anyone runs into the same problem it may help them. It is not completely altruistic though, as I refer to my own posts when I forget how I did something before :laugh:
 
Maybe double check that .NET 2.0 is installed? It would be under Add/Remove Programs labeled as "Microsoft .NET Framework 2.0 Service Pack 2".
Capture123.jpg

Nope, .NET is installed.
 
Try running the program (HelloWorld.zip) attached to this post. If it doesn't work, .NET must be corrupt so you should either repair it or uninstall and get a fresh copy from Microsoft. If it does work, I guess we'll just have to some serious debugging (stepping through everything from execution to displaying the form).
 
Last edited:
.NET is fine, it seems
Capture124.jpg


Go to bed!
 
Indeed. I'll make a build just for you that will write to a file line by line and hopefully, it will stop writing just before it crashes. XD
 
Indeed. I'll make a build just for you that will write to a file line by line and hopefully, it will stop writing just before it crashes. XD

I'll happily run a debugger version.

It all started going wrong with your beta 4 build. What did you change between b3 and b4?
 
I'll happily run a debugger version.

It all started going wrong with your beta 4 build. What did you change between b3 and b4?
I have no idea. :roll:


Extract and run the attached app. It will create a "step.log" in the same directory it is in. Copy and paste its contents here.
 
Last edited:
That's helpful... This version will zoom in on the problem code more...
 
Last edited:
Capture129.jpg


Ford, I'm out now until Saturday.... sorry cant help further until then. Got to leave for Strasbourg. Lemon
 
It should be fixed in this file...

If it isn't, copy the step.log again.


Have fun on your trip. :)
 
Last edited:
The print engine is moving right along.
There are a few quirks with alignment between the PrintDocument positioning and the graphics device drawing methods. No big deal, but it means a little extra tweeking to get the text and graphics positioned correctly.
I hope to have a working screen for you tonight yet. (crosses fingers)

Btw, I had to make a few minor modifications. ;)
Everything is commented to indicate something I did, so you will not have any problems finding the changes.
 
That was quick. I'm working on adding DNS Record now...


Edit: I got DNS Record done but I am going to wait until for sure lemonsoda's problem is fixed before releasing it.

Here's the Copy to Clipboard results for cnn.com:
Code:
Network Tools 2.0.0
DNS Record
-------------------

Header: id: 44166
Flags: Query: 1, Answer: 6, Authority: 3, Additional: 1

Questions:
+----+---------+------+-------+
| Id | Name    | Type | Class |
+----+---------+------+-------+
| 1  | cnn.com | A    | ANY   |
+----+---------+------+-------+

Answers:
+----+---------+------+-------+-----+----------------+
| Id | Name    | Type | Class | TTL | Record         |
+----+---------+------+-------+-----+----------------+
| 1  | cnn.com | A    | IN    | 177 | 157.166.224.26 |
| 2  | cnn.com | A    | IN    | 177 | 157.166.226.25 |
| 3  | cnn.com | A    | IN    | 177 | 157.166.226.26 |
| 4  | cnn.com | A    | IN    | 177 | 157.166.255.18 |
| 5  | cnn.com | A    | IN    | 177 | 157.166.255.19 |
| 6  | cnn.com | A    | IN    | 177 | 157.166.224.25 |
+----+---------+------+-------+-----+----------------+

Authorities:
+----+---------+------+-------+-----+---------------------+
| Id | Name    | Type | Class | TTL | Record              |
+----+---------+------+-------+-----+---------------------+
| 1  | cnn.com | NS   | IN    | 124 | twdns-02.ns.aol.com |
| 2  | cnn.com | NS   | IN    | 124 | twdns-04.ns.aol.com |
| 3  | cnn.com | NS   | IN    | 124 | twdns-03.ns.aol.com |
+----+---------+------+-------+-----+---------------------+

Additionals:
+----+---------------------+------+-------+------+---------------+
| Id | Name                | Type | Class | TTL  | Record        |
+----+---------------------+------+-------+------+---------------+
| 1  | twdns-03.ns.aol.com | A    | IN    | 2343 | 207.200.73.85 |
+----+---------------------+------+-------+------+---------------+
 
Last edited:
Okey dokey. Preliminary results ...
Capture005953.jpg


It still needs work, but what do you think?
 
It's good so long as it supports multiple Options, Fields, and Tables. ;) Maybe I should give you the new one with DNS Record code which has all of the above.
 
It should not matter, I pull the data directly from the "uc" class (I needed the data in a different format than you were sending to the TextFile, so I wrote a method for the class to send me what I wanted).

It's a standard method that works off of the SVL's so it will work on any of the classes.

Hope you don't mind. :o
 
You probably better send the UserControl changes to me because if it doesn't work with the larger scheme of things, it won't be acceptable.
 
Last edited:
Back
Top