Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Monday, August 13, 2018

Retrieve application running on ports in windows

Use netstat command to get application list running on specific ports.

netstat -anob

Run the above command as administrator in command prompt.


Wednesday, December 10, 2014

Find port usage

Following command can be used to check port usage.
In windows command prompt type following command.

netstat -aon |find /i "listening" |find "port"

This will return port usage.

Tuesday, December 4, 2012

Windows Username in JAVA

This is a simple code to retrieve windows username in JAVA.

public class getWindowUsername {
    public static final void main( String args[] ) {
      String userName = System.getProperty("user.name");
      System.out.println("Window's Username: "+userName);
   }
}

Tuesday, October 25, 2011

Find multicast groups

In windows, use following  commands to find multicast groups.

Open command prompt and run the following command in terminal.

netsh interface ip show joins

Sunday, August 21, 2011

How to get System information in windows

  • Open command prompt
  • Type "systeminfo" command
  • Run the command
This will get a few seconds to load information.

Wednesday, November 18, 2009

DNS Mapping in windows

Go to "C:\Windows\System32\drivers\etc".

Edit hosts file in etc folder. Add your ip addres and the mapping name.

Ex :-

192.168.4.7 name.domain.com

Now, you can access your ip address using DNS set above.

Ex :-

http://name.domain.com/App