This solution only works if you have an ethernet connection.
For creating an iPV6 NAT64 wifi network, follow these steps
Step 1 : Open system preferences
Step 2 : Open Sharing
Step 3 : Click on internet sharing
Step 4 : Click Wifi in the ports while pressing option(ALT) key. A Create NAT64 Network checkbox will be displayed on the bottom after that. It is important to press ALT while selecting WIFI for displaying the checkbox
Step 5 : check Create NAT64 Network checkbox.
Now test the application in the created network.