Bridge Command Forum

Support => Bridge Command General Support => Topic started by: thomas on March 31, 2014, 03:10:48 PM

Title: NMEA TCP/IP
Post by: thomas on March 31, 2014, 03:10:48 PM
Hello,

I would like to use the multi-player server to simulate several boats and retrieve the NMEA sentences that they send. I used this TCP client: http://systembash.com/content/a-simple-java-tcp-server-and-tcp-client/

I have the following error: java.net.ConnectException: Connection refused: connect

The configuration in bc4.ini is:

[NMEA over TCP/IP (Experimental)]
NMEA_tcpip=1
NMEA_tcpip_OPTION=0
NMEA_tcpip_OPTION=1
NMEA_port=10110
NMEA_address=127.0.0.1

Are the options right or should I change anything else?
Title: Re: NMEA TCP/IP
Post by: forum_admin on April 01, 2014, 10:29:32 PM
Hi,

I haven't yet had a chance to check the code you linked to, but one quick question: Are you running the client or server code? Bridge Command is basically working as a TCP/IP client, so your code should be setting up a TCP/IP server (bound to port 10110 or whatever you set), and Bridge Command will then connect to this.

James