The FXDK server wont start whenever I try to start it
If you manually try to start a server using the exact same command line commands as the program it gives this error:
The line above causing the error is located in sdk-server.js, with the below lines causing the error.
const pipe = '\\\\.\\pipe\\fxdk_fxserver_sdk_game';
const ipc = net.createConnection(pipe);
const send = (type, data) => {
ipc.write(JSON.stringify([type, data]) + '\n');
}
So I tested it on my own and it seems net.createConnection always gives ECONNREFUSED.
Test code:
const net = require('net');
const client = net.createConnection({ port: 8124}, () => {
// 'connect' listener.
console.log('connected to server!');
client.write('world!\r\n');
});
client.on('error', function(e) {
console.log(e);
console.log(e.message);
});
client.on('data', (data) => {
console.log(data.toString());
client.end();
});
client.on('end', () => {
console.log('disconnected from server');
});
Output:
Error: connect ECONNREFUSED 127.0.0.1:8124
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 8124
}
connect ECONNREFUSED 127.0.0.1:8124
I know this issue is a issue with my PC and not with FXDK however I am posting here hoping someone will understand what is wrong. I know that ECONNREFUSED and packet errors in-general often don’t mean what they say so I am going to attach a tcpdump below. I don’t quite know how to read packets so I am hoping someone else does and can tell me what error is really happening.
Link to the pcap file to view the packets Click me