I have made an online 1v1 sword fighting game too! here it is if you want to check the trailer out GD41 Blood and Steel Trailer - YouTube
It depends on how you coded your apply damage, maybe for some weird reason you are applying damage to the wrong player, if you can show some of your code for this I could help you better.