Change AdminServer Port Using WLST.SH

Sometimes AdminServer not working Regarding to Wrong configuration or using Wrong Port which mean No Console will be available so is this mean delete domain and Configure it again !!!

Absolutely  Not  When you install Weblogic any Version Oracle Provide you with Command Line Utility to administrate weblogic, what you can do it using Console can be done with this tool.

change to weblogic-directory/common/bin

Now follow the below Steps to change port :

wls:/offline> readDomain (‘/u01/app/fmw/domains/IDDomains’)
wls:/offline/IDDomains> cd (‘Server’)
wls:/offline/IDDomains/Server> ls ()

Choose your Server Here

wls:/offline/IDDomains/Server> cd (‘AdminServer’)
wls:/offline/IDDomains/Server/AdminServer> ls ()

Search for Old Port ListenPort 

wls:/offline/IDDomains/Server/AdminServer> set (‘ListenPort’,New Port)
wls:/offline/IDDomains/Server/AdminServer> updateDomain ()
wls:/offline/IDDomains/Server/AdminServer> exit () 

Done you can now Test your new port

Thank you
Osama Mustafa