If you want to use an Ethernet address(like 192.168.0.1) to send http request, you may meet the error：A network capability is required to access this network resource.
So the solution here:Package.appxmanifest -> Capabilities tab -> Check Private Networks (Client & Server) capability.