The remoting API has been removed from the standard library in Haxe 4. For compatibility purposes it is still available in the hx3compat library. See Haxe 3 Compatibility.