Enable sockets

Hello I have a host but i also have a script to query minecraft servers anyway my question is how to i enable sockets for port 25565?

Is this a web host or a gaming host?

Typically, web host providers do not make allowances for services other than HTTP, HTTPS, FTP, and SFTP.

If you want to host a game server, you will likely have to look for a minecraft hosting service. They will do the basic server configuration to get the game up and running.