Go into settings and check which socket is being used. There are two sockets, the top one is whatever you want
For the bottom one choose one of the options presented, it will let you type any number but it has to be one of the ones from the list. Just choose one close to the top port number.
I had exactly this problem