diff --git a/exporter.py b/exporter.py
index 4c72224c0b33be48a0362a373f72b3005ea56ada..cafaff10a2b584fe55c5006186b744fa60d264df 100644
--- a/exporter.py
+++ b/exporter.py
@@ -252,7 +252,7 @@ def unregister():
 
 
 def send_motion(servo_data):
-    requests.post('http://' + DOFBOT_IP + ':' + str(DOFBOT_PORT) + '/motion', json = servo_data)
+    requests.post('http://' + bpy.context.scene.dofbot.dofbot_ip + ':' + str(bpy.context.scene.dofbot.dofbot_port) + '/motion', json = servo_data)
 
 
 def run_animation():