We need code to understand what you are reporting:
1. If you are setting up a host then it will always return 1
2. If you are setting up as a client then you
have to connect to a network. You can't connect to nothing. If you are connecting to nothing then what network ID are you using in the command?
I can't get the IsNetworkActive() command to work without a legitimate network ID. If the command is working (ie not crashing) then you must have created a network. Once I connect and disconnect, then it takes a while to report zero again.
If you haven't created a network connection, then why are you checking? I know you have a good explanation, we just need a better understanding to help