NetworkMessageInfo.sender is equal to -1

When I send an RPC function through a script the NetworkMessageInfo.sender NetworkPlayer is equal to -1, this happens when the host sends a RPC function and he/she receives it… Solution and explanation anyone?

I think that the server has a value of -1. Sending an RPC to itself is useless anyway. Execute the method by calling it, not through an RPC.

yeah but im making a chat system