not able to connect after changing the port number.
What did you change from what to what?
If you can try running this code on the SQL server that you have changed and post the results:
declare @T table (logDate datetime , ProcessInfo sysname , [text] varchar(800));
insert @T exec xp_readerrorlog;
select LogDate , [TEXT]
where [TEXT] like 'Server is listening%'
order by logDate;