Page 1 of 1

"Could not bind socket" after closing port 389

Posted: Tue Aug 10, 2021 10:47 am
by ACS Poker
Hi Kent - I have cloudflare SSL and ports 443/8443 on my server. Server was running fine.
Recently told by server support that we were getting attacked on port 389 so I closed it.

Now, I get the dreaded "Could not bind socket" message when I try to start the server.
Auto start server is set to OFF. Keep alive connections is set to YES.

Not sure what to try now.

Re: "Could not bind socket" after closing port 389

Posted: Tue Aug 10, 2021 1:00 pm
by Kent Briggs
Bring up the Windows Task Manager (right-click the Windows taskbar at the bottom of the screen) and look for PMServer.exe on the Processes tab. If it's running under a different Windows login then you'll need to check the "Show processes from all users" option. There you can force-close it.

Re: "Could not bind socket" after closing port 389

Posted: Tue Aug 10, 2021 1:23 pm
by ACS Poker
Oddly enough, there's only one instance running. This is on Windows Server 2016 DC. The Task Manager looks a little different.
Site1.PNG
Site1.PNG (54.03 KiB) Viewed 2461 times
Site2.PNG
Site2.PNG (46.57 KiB) Viewed 2461 times

Re: "Could not bind socket" after closing port 389

Posted: Tue Aug 10, 2021 2:10 pm
by Kent Briggs
Close that copy and then look on the Details tab in the task manager and see if there is another PMServer.exe running.

Re: "Could not bind socket" after closing port 389

Posted: Tue Aug 10, 2021 11:07 pm
by ACS Poker
Kent Briggs wrote:Close that copy and then look on the Details tab in the task manager and see if there is another PMServer.exe running.
There is not. I just tried starting PMserver after checking that it was not currently running, and the same thing happens. So odd. Only change was the firewall rule add for port 389 - grrrr

Re: "Could not bind socket" after closing port 389

Posted: Wed Aug 11, 2021 12:31 am
by Kent Briggs
Have you tried a reboot?

Re: "Could not bind socket" after closing port 389

Posted: Wed Aug 11, 2021 11:44 pm
by ACS Poker
Kent Briggs wrote:Have you tried a reboot?
Several tiimes.

I've started the process of reinstalling on a new cloud image. I'll let you know how it went when done.

Re: "Could not bind socket" after closing port 389

Posted: Thu Aug 12, 2021 9:11 am
by Kent Briggs
Are you sure the Microsoft IIS webserver isn't running? It would bind 80 and 443 for itself.

Re: "Could not bind socket" after closing port 389

Posted: Thu Aug 12, 2021 9:23 am
by Kent Briggs
Kent Briggs wrote:Are you sure the Microsoft IIS webserver isn't running? It would bind 80 and 443 for itself.
Also see this link for how to hunt down which process is using a particular port:

https://www.printsupportcenter.com/hc/e ... cks-a-port