This is not supported unfortunately. Your options are to use a separate wireless network or to use ad hoc mode where the duet creates a wifi network that you connect to.

Generally it's not a wise idea to connect a 3d printer to a large open network anyway.