Your wifi and ethernet have two different MACs so your LAN IP is changing when you switch between them. When you use the ethernet cable your router is still forwarding the incoming traffic to the wifi address. So you can either only use wifi or change your port forward every time you switch.
Your wifi and ethernet have two different MACs so your LAN IP is changing when you switch between them. When you use the ethernet cable your router is still forwarding the incoming traffic to the wifi address. So you can either only use wifi or change your port forward every time you switch.