pynetworktabless connection issue

Hello, we are using pynetworktables to send data from our TX1 back to the roborio. We are unable to send data back to the roborio if both the driver station and the TX1 are connected; networktables runs fine when the driver station is not connected, but then continuously crashes after the driver station connects.

Crashing Message: UnicodeDecodeError: ‘utf8’ codec can’t decode byte 0xc0 in position 23: invalid start byte
INFO: nt: DISCONNECTED 10.TE.AM.2 port 1735(Robot)
DEBUG: nt:write thread died (<ntcore.network_connection.NetworkConnection object at 0xf31d9430>)
DEBUG:nt:client connected
DEBUG:ntNetworkConnection stopping (<ntcore.network_connection.NetworkConnection object at 0xf31d9430>)
ERROR:nt:Unhandled exception during handshake.

NetworkTables Code:
NetworkTables.initialize(server=‘10.TE.AM.2’)
sd = NetworkTables.getTable(‘SmartDashboard’)
while True:
sd.putNumber(‘test’, 3)

We are using these static IP’s:
RIO:
IP: 10.TE.AM.2
Subnet Mask: 255.255.255.0
Gateway: 10.TE.AM.1

DS:
IP: 10.TE.AM.5
Subnet Mask: 255.0.0.0
Gateway: 10.TE.AM.1

We are unsure if this is a networktables issue, or a networking issue.
Does anyone have any idea what is going on? Thanks.

I can’t tell if you are doing it because you don’t want us to know what team you are from, but the TE.AM should be replaced with your numbers. For example, I am from 2169, so it would be 21.69, or if you were from a 3 digit team it would be 02.54

I assume this isn’t the case but it doesn’t hurt to try

It would be useful to see the entire traceback for the crash, not just the error message.

Which version of python are you using? Which version of pynetworktables is installed? What are you running on the driver station: labview dashboard, smartdashboard, no dashboard?