The 169.254.115.245 address is a self assigned address on the wired network, probably resolved via mdns.
The 198.105.244.23 address is a non-local address probably coming from your ISP possibly via regular DNS and is bogus. (To verify this, visit it with a web browser and see if you get an advertisement page.) The ip address you get with wifi disabled should work even with the wifi enabled, except that it may periodically change.
ThereHere are a couple ofsome options to make the network configuration more stable, each of these has advantages and disadvantages:
- replace your ISP's DNS server with one that doesn't return bogus answers for unknown hosts. For example, you could use google's 8.8.8.8 or 8.8.4.4
- Change your wired network configuration to use a static range instead of a self-assigned range on both computers (e.g., 192.168.1.10 for your computer and 192.168.1.20 for the pi)
- Add a dhcp server to your wired network to pass out ip addresses instead of using self assigned addresses or assigning them by hand (as above), and see if it has an option to make the PI's address static
- keep using the self assigned addresses you have now; but you'll have to periodically check what address the pi is using when it changes (probably when it reboots)
- change your local computer's DNS resolution to resolve via mdns before resolving via regular DNS (but this should be default??)