I can reproduce this problem at my homestation on the Brierie multiplayer server.
It's worth noting Brierie server hasn't wiped in almost a year so whether this is reproducable on a fresh map in uncertain.
When docking on rails placed in a certain fashion near a sector edge, I'm teleported with my ship a large distance away, if I exit my ship I'm unable to renter and ship appears to have become like a hologram (astronaut sidearm shoots straight through it).
If I stay inside the ship and try reconnecting to the server, I'm transported again the same distance from the ship that myself and the ship was originally transported from the docking rail in the same direction, on my own as an astronaut, but when I'm able to reach the ship again I can usually regain control.