Answers.Body: <p>Have you updated the firmware? That may be a problem but it also may be that there is an error connecting using Bluetooth. “Destination host was down” means that the coding platform could not connect to the NXT.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-01T23:32:35.420Z
Answers.LastActivityDate: 2019-04-01T23:32:35.420Z
Answers.UserDisplayName: Ultraman2018
Answers.Body: <p>I have a strong suspicion that your COM3 is connected to BlueTooth so your Python program can't connect.</p>
  <p>I would go through the information in the <a href="http://cache.lego.com/r/www/r/mindstorms/-/media/franchises/mindstorms%202014/downloads/firmware%20and%20software/nxt%20software/bdk_download1.zip?l.r=-1144978407" rel="nofollow noreferrer">NXT Bluetooth Developer Kit</a> (available from the <a href="http://www.lego.com/en-gb/mindstorms/downloads" rel="nofollow noreferrer">LEGO MINDSTORMS download page</a>) to troubleshoot the process.</p>
  <p>Beyond that, this sounds like a potential general BlueTooth issue, and not directly related to the NXT brick.</p>
  <p>In the worst case, there might be a hardware issue with the brick itself. Lending another NXT brick and checking if it gives a different result should answer that question.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-20T06:08:46.830Z
Answers.LastActivityDate: 2021-09-20T06:08:46.830Z
Answers.UserDisplayName: Nils Munch
Body: <p>We have a fully working java program that can connect to another computer and can send messages from this (both sides run java and we used SPP Server and Client).</p>
  <p>However, when trying to connect to the NXT Brick and send a message via Bluetooth, we are able to pair with the brick and send a message but we have no idea if the NXT receives it.</p>
  <p>When we tried to use Java SPPClient on the computer(we provide the ServerURL of NXT to java program) to send the message to NXT Brick running the RobotC, it doesn't work. On the java side, this error is given:</p>
  <blockquote>
  <p>Failed to connect; [10064] A socket operation failed because the destination host was down.</p>
  </blockquote>
  <p>Using RobotC the brick is waiting for a message to be sent and it is awaiting 3 integers to help the robot move.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-20T06:03:38.283Z
Comments.Text: @tuskiomi The socket connection error is for the bluetooth connection, not the internet. The firewall should not interfere in local bluetooth connections.
Comments.UserDisplayName: Nils Munch
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-07-20T15:21:56.530Z
Comments.Text: that sounds like a firewall problem. Is the java program trying to access the internet?
Comments.UserDisplayName: tuskiomi
Tags: <nxt><bluetooth><robotc>
Title: PC To NXT Brick via Bluetooth
UserDisplayName: UltraForce
ThreadText: # PC To NXT Brick via Bluetooth
  
  (Asked by: username_0 on 2015-02-19)
  
  We have a fully working java program that can connect to another computer and can send messages from this (both sides run java and we used SPP Server and Client).
  
  However, when trying to connect to the NXT Brick and send a message via Bluetooth, we are able to pair with the brick and send a message but we have no idea if the NXT receives it.
  
  When we tried to use Java SPPClient on the computer(we provide the ServerURL of NXT to java program) to send the message to NXT Brick running the RobotC, it doesn't work. On the java side, this error is given:
  
  > Failed to connect; [10064] A socket operation failed because the destination host was down.
  
  Using RobotC the brick is waiting for a message to be sent and it is awaiting 3 integers to help the robot move.
  
  **Tags:** nxt, bluetooth, robotc
  
  > **Comments:**
  > **username_2**: that sounds like a firewall problem. Is the java program trying to access the internet?  
  > **username_1**: @username_2 The socket connection error is for the bluetooth connection, not the internet. The firewall should not interfere in local bluetooth connections.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2019-04-01. Score: 1
  
  Have you updated the firmware? That may be a problem but it also may be that there is an error connecting using Bluetooth. “Destination host was down” means that the coding platform could not connect to the NXT.
  
  
  ---
  
  ### Answer by username_1 on 2021-09-20. Score: 0
  
  I have a strong suspicion that your COM3 is connected to BlueTooth so your Python program can't connect.
  
  I would go through the information in the [NXT Bluetooth Developer Kit](http://cache.lego.com/r/www/r/mindstorms/-/media/franchises/mindstorms%202014/downloads/firmware%20and%20software/nxt%20software/bdk_download1.zip?l.r=-1144978407) (available from the [LEGO MINDSTORMS download page](http://www.lego.com/en-gb/mindstorms/downloads)) to troubleshoot the process.
  
  Beyond that, this sounds like a potential general BlueTooth issue, and not directly related to the NXT brick.
  
  In the worst case, there might be a hardware issue with the brick itself. Lending another NXT brick and checking if it gives a different result should answer that question.
  
  
  ---
  
  