The dafault properity of txtipadress.text and that is a string!
If you want to have an IP.address (i.e. "255.255.255.0") you need to change that string into those four numbers(or does a VAR-type IP-address exist?).
The same is probable true for "trace"