What does “running” entail? On the headless server: Can you set up a scene, enable physics and spawn a ground mesh and sphere mesh? Can you then apply a physics impulse to the sphere? Can you then obtain e.g. the sphere.position vector? Can you send these position data to a client? Can a client respond to that message back to the server?
As for examples, maybe this can be helpful: