Miracast is a mirroring protocol that uses the WiFi adapter, and more specifically WiFi Direct, to negotiate a connection. Even though you might be on the same network, it will always use the WiFi adapter for discovery first. 

In order to get Miracast working on Xbox One, it is necessary to hardwire your Xbox One into the network and to be within range of the WiFi adapter of your Xbox One.