Open Command Prompt as Administrator in Windows . Go to the directory where Jenkins is installed. and stop the Jenkins service first, using jenkins.exe stop
type the command to change the port using, java -jar jenkins.war --httpPort=9090 (enter the port number you want to use).
and at-last, restart the Jenkins services, using jenkins.exe restart