Q&A

Q&A with InetD: Answers to Computer, Internet, Networking and Telecom questions from our reader’s e-mails and comments.

So, you want to learn about Computers, Networks and the Internet?  Feeling a little overwhelmed by how complicated they are?

All of these technologies are built out of small pieces.  That is, each piece was developed all by itself, and the pieces where then put together to make the more complicated systems.  To make learning about computers and especially networking or the Internet a little easier, you can start with the OSI Model.   If you understand the concepts that go into the OSI Model, you can use the OSI Model as a framework for helping you understand how the pieces that go into networking fit together and how they rely on each other to create the web surfing experience.

Read more aobut the OSI Model

Windows doesn’t come with a simple command-line differencing tool as does UNIX/Linux. This is unfortunate because even Windows has to do some scripting from time to time and comparing files manually, correctly, is a pain.  Here is a short list of options that I am aware of for differencing files on a Windows system.

  • MS-DOS Tools
    • fc
    • windiff
  • Windows Power Shell
    • compare-object
  • Win32 versions of UNIX utilities
    • unixutils – diff.exe
  • Third Party Utilities
    • WinMerge GUI

MS-DOS Tools

The file comparison tool, fc.exe comes with Windows and can perform an ASCII or binary file comparison:

fc file1.txt file2.txt

The windiff.exe tool does the same comparison, but within the Windows GUI.  For Windows 2000, 2003 and XP, this tool is in the Support Tools kit, or the Resource Kit for older versions of Windows.  The windiff.exe tool can also compare the list of files in folders.

Windows Power Shell

Windows 7 comes with PowerShell, you have to download it for all other versions. Within the powershell are “command-lets” and one of those is compare-object.  To compare the contents of two files, you have to use this long, complicated setup:

compare-object -referenceobject $(get-content C:\test\testfile1.txt) -differenceobject $(get-content C:\test\
 testfile2.txt)

Win32 Versions of UNIX Utilities

There is a bundle called “unixutils” that is a Windows 32-bit port of the standard UNIX utilities. I prefer these so much, I actually make a point of installing it on any workstation I use frequently.

diff file1.txt file2.txt

Third Party Tools

There are also several third party tools, but the one that seems to work best is called WinMerge, which is free and open source.

Screenshot: WinMerge file comparison utility

Screenshot: WinMerge file comparison utility

We have 2 PCs behind routers in geographically separated
networks. What is the best practice to connect those two
PCs together as if they were connected locally in a LAN.
Is VPN the answer and how do I setup a VPN network connection?
Do I need a VPN server or something?

Thank you for such wonderful site.

Read More: InetDaemon’s Answer to the VPN Question

I want to establish a tcp connection from multiple
clients to the server on the same port at the server.
How do I do that?

Sounds like you’re trying to multiplex the connections at your server.  Provided your application can handle more than one client at a time, TCP multiplexing takes care of the networking side of things for you automatically.

Here’s how..

Continue reading

Support InetDaemon.Com