Network. problems, Network.Initialize, Network.HavePublicAddress and so forth

I don’t really understand why I am getting this error, this is C# by the way. If someone can explain why I am getting the errors and provide a fix that would be greatly appreciated

Just found the answer to this for any1 having trouble