This question is not really about Twisted, but about networking. Twisted's connectTCP
connects from some IP address on your computer to some IP address on a remote computer. You don't need to specify the source address usually because your local TCP stack will automatically discover the correct one to use based on the remote one. However, both computers need to have IP addresses that can route to each other.
The output you're showing from ifconfig
is showing that you have an ethernet device, but that device does not have an associated IP address. There's no IP address for you to give to Twisted because your network is not set up fully enough for connectTCP
(or other software that operates even at the IP layer, let alone at the higher level that connectTCP
is at, which is TCP) to work.
You need to somehow assign an IP address to that interface on both the local and the remote device, if they're just plugged directly into a network switch with no DHCP server (or some other mechanism like SLAAC) to give them an address directly. You also need to set up your netmask and everything else so that the two computers can route to each other.
I'm not going to tell you how to do that in this answer because it depends heavily upon your network configuration and operating system. However, that would be a good candidate for something on Super User as Jean-Paul put it in his comment.