You must use the same subnet as your local network. In your case it was /24 wich is 256 hosts. 255.255.255.0 and match the Gateway to your router or DHCP Server if this is not done the Packets will be sent to 192.168.1.1 which is the default.
To quicly find your ethernet connections
WINDOWS:
You can open the command prompt command + R , CMD ENTER, Input "ipconfig"
Mac OS
Open the Terminal shift + space bar input "terminal" in the terminal input ifconfig
For Linux and BSD is the same as Mac OS
Open the Terminal shift + space bar input "terminal" in the terminal input ifconfig