Shortcut to get current machine IP address

Search for machine IP address

On windows when you want to know the machine IP address you typically type ipconfig. This command provides too much of text and you literally have to go through all the junk to find the text that contains the IP address.

Here is a tip to extract the IP address from the output generated by this command. Type this command at the command prompt.

How this works?

The output of the ipconfig command is piped to the the next command through the ‘|’ symbol. The next command is ‘findstr’. This command searches for a substring in the given text. It works more like the ‘grep’ command in Unix/Linux.

The option ‘/i’ does a case insensitive search.

This command extracts the line that contains the text ‘ipv4’ while doing a cases insensitive search.

The command output looks something like this

ipconfig shortcut

Please follow and like my blog:

How to enable Windows Containers

Microsoft support for Windows containers started with Windows Server 2016 and Windows 10 Anniversary edition.

Windows supports two types of containers Native and Hyper-V. They differ in the isolation provided by the Operation System.

The native containers are treated as any other process by the operation system. Hyper-V containers are run under a light weight Virtual Machine. This enables an additional layer of isolation for the containers. The container image format is the same for both type of containers. It is only the run time isolation that is different.

Windows 10 supports only Hyper-V containers. Due to this when we want to build and run containers on Windows we need to enable the following features.

a. Containers

b. Hyper-V

The following images depicts how these features can be enabled from the Windows feature installation UI.

After enabling these features you need to restart the machine.

Please follow and like my blog:

List of scenarios where Docker for Windows can be utilized

Docker platform was built on use cases derived from running large scale services on Linux platform. It is obvious that the scenarios where Linux is most popular is not in the desktop end but on the server side applications. Due to this Docker in specific and Containers in general have been designed and are most apt for the background services like Web API, Web Server etc. which do not have desktop experience.

When the Docker is used in the Windows platform, it addresses only subset of the cases where large scale applications are concerned. Since containers were not designed with the desktop experience in mind it is not suitable for Windows Forms and WPF applications. But, it is well suited for ASP.Net applications (both Web and Web API), WCF services and Console application that do not need user inputs.

Please let me know your views on this.

Please follow and like my blog: