Does this exist? I am able to send data to and from server and client but syncing physics through network lag is confusing.
There is no solution that would work for all games. Networking a game, especially a rapid action, heavily synced one is hard.
Source Multiplayer Networking - Valve Developer Community
Latency Compensating Methods in Client/Server In-game Protocol Design and Optimization - Valve Developer Community
another useful reference: