I got a message like:-
announcer: Failed to read announce response from 127.0.0.1(10060)
Can I get a explanation why that error poped up? And can anyone tell me the other error codes too :) ?
Are you trying to announce to localhost?
Quote from: Thijn on Jul 30, 2016, 09:43 AMAre you trying to announce to localhost?
yes. This is exactly what I added to server.cfg
announce 127.0.0.1:82
Using localhost gave me the IPv6 IP and not IPv4, so using 127.0.0.1
Quote from: KAKAN on Jul 30, 2016, 10:46 AMQuote from: Thijn on Jul 30, 2016, 09:43 AMAre you trying to announce to localhost?
yes. This is exactly what I added to server.cfg
announce 127.0.0.1:82
Using localhost gave me the IPv6 IP and not IPv4, so using 127.0.0.1
What the... ROFL. Is there a master-list on localhost? Or even a web-server to receive the post message. and reply back.
Quote from: . on Jul 30, 2016, 11:41 AMQuote from: KAKAN on Jul 30, 2016, 10:46 AMQuote from: Thijn on Jul 30, 2016, 09:43 AMAre you trying to announce to localhost?
yes. This is exactly what I added to server.cfg
announce 127.0.0.1:82
Using localhost gave me the IPv6 IP and not IPv4, so using 127.0.0.1
What the... ROFL. Is there a master-list on localhost? Or even a web-server to receive the post message. and reply back.
KAKAN bich is copying me. I was the guy who had the idea of opening an unofficial masterlist.
Quote from: . on Jul 30, 2016, 11:41 AMQuote from: KAKAN on Jul 30, 2016, 10:46 AMQuote from: Thijn on Jul 30, 2016, 09:43 AMAre you trying to announce to localhost?
yes. This is exactly what I added to server.cfg
announce 127.0.0.1:82
Using localhost gave me the IPv6 IP and not IPv4, so using 127.0.0.1
What the... ROFL. Is there a master-list on localhost? Or even a web-server to receive the post message. and reply back.
master-list on localhost -_-
I was trying to use NodeJS to host/make a masterlist and got this kind of problems :p
Quote from: EK.CrystalBlue on Jul 30, 2016, 01:21 PMKAKAN bich is copying me. I was the guy who had the idea of opening an unofficial masterlist.
You twat. I thought you were the opensource guy, am I right? (
I can look back at all the posts you made to prove, if you want.) Then why are you such a little b!tch when someone want's to make something that you're doing as well?
The stupidity you've just shown is unbelievable.
You all cry "
open source" and "
free" but only as long as it's not coming from you.
Quote from: . on Jul 30, 2016, 02:42 PMQuote from: EK.CrystalBlue on Jul 30, 2016, 01:21 PMKAKAN bich is copying me. I was the guy who had the idea of opening an unofficial masterlist.
You twat. I thought you were the opensource guy, am I right? (I can look back at all the posts you made to prove, if you want.) Then why are you such a little b!tch when someone want's to make something that you're doing as well?
The stupidity you've just shown is unbelievable.
You all cry "open source" and "free" but only as long as it's not coming from you.
lol? just telling what hes trying to do [hosting his masterlist] since you asked if there was a masterlist on localhost
i don't have any problems against him just notifying us all
anyways let me read you a line from the license agreement of a software I am making for proof [and yes, I did it before your comment]
These only apply when downloading from our mirror. All of our software is released under the public domain.
plus the agreements are only to prevent idiots from suing me
WARRANTY
____________________________________________________________________________________________________________________________________________________
Our mirror is provided without any legal warranty. Do not attempt to open a lawsuit on warranties.
LOSSES
____________________________________________________________________________________________________________________________________________________
Our downloads are provided on your complete responsibility. Any loss(es) arising from our downloads, including injuries, are|is your responsibility.
LIABILITY
____________________________________________________________________________________________________________________________________________________
You agree that if any legal issues arise, you will not let on Elitenet any liabilty.
You will also not sue Elitenet. Please resolve your disputes, should they arise, privately with Elitenet, without any legal intervention.
And remember, I was, am, and will remain the guy who loves freedom
Crystalblue, I'm not copying you. I made it from scratch. And also, it's not PHP, its nodejs.
Anyways, lets stay on-topic. Tell me the meaning of that error, please.
error:-
announcer: Failed to read announce response from 127.0.0.1(10060)
And could you please list all the error codes?
I'm guessing that the error is because you received the POST request from the announcement plugin but you never replied back with what it expects. Thus, it "Failed to read announce response".
And I'm guessing that all these "master-list" mirrors will not connect to the server and actually verify that the server is running and it's accessible from the outside world (like the official one does). Which makes your "master-list" susceptible to flooding with fake servers.
Try using Wireshark to capture the packets
[or any other pakit snifer]
and host the masterlist on another PC so it can check network traffic.
if you find that it successfully reply then fuck your pc otherwise find out why it isn't making the pakits
Quote from: . on Jul 30, 2016, 04:44 PMAnd I'm guessing that all these "master-list" mirrors will not connect to the server and actually verify that the server is running and it's accessible from the outside world (like the official one does). Which makes your "master-list" susceptible to flooding with fake servers.
I was just trying to do that :p
Quote from: . on Jul 30, 2016, 04:44 PMI'm guessing that the error is because you received the POST request from the announcement plugin but you never replied back with what it expects. Thus, it "Failed to read announce response".
I saw ysc's PHP masterlist, and did what he did.
I did some debug, and I see that I can successfully send the UDP packet to the server, but can't receive any :(
What? Its supposed to be a TCP!
node.js http | express all run on TCP. you might need to write your own module that http on UDP
Quote from: EK.CrystalBlue on Jul 31, 2016, 07:25 AMWhat? Its supposed to be a TCP!
node.js http | express all run on TCP. you might need to write your own module that http on UDP
He's talking about sending a UDP query packet to VC:MP servers...
Quote from: EK.CrystalBlue on Jul 31, 2016, 07:25 AMWhat? Its supposed to be a TCP!
node.js http | express all run on TCP. you might need to write your own module that http on UDP
@EK.CrystalBlue please do read the documentation before saying something:-
https://nodejs.org/api/dgram.html
THIS IS NOT A FREAKING HTTP MODULE!
this is a socket. sockets can on tcp and udp in almost all languages
Quote from: EK.CrystalBlue on Jul 31, 2016, 07:41 AMTHIS IS NOT A FREAKING HTTP MODULE!
this is a socket. sockets can on tcp and udp in almost all languages
YOU ARE A FREAKING IDIOT! YOU NEED TO CONNECT TO THE VCMP SERVER USING UDP!
Masterlist is done with HTTP, not the query system -_-
OKAY I AM NOT A FREAKING IDIOT
the reason I thought it was http was because of slc reply
Quote from: KAKAN on Jul 31, 2016, 07:43 AMQuote from: EK.CrystalBlue on Jul 31, 2016, 07:41 AMTHIS IS NOT A FREAKING HTTP MODULE!
this is a socket. sockets can on tcp and udp in almost all languages
YOU ARE A FREAKING IDIOT! YOU NEED TO CONNECT TO THE VCMP SERVER USING UDP!
Masterlist is done with HTTP, not the query system -_-
The error you posted says your HTTP reply is wrong, which is why any sane person would assume that's where you need help with.
Quote from: Thijn on Jul 31, 2016, 09:42 AMQuote from: KAKAN on Jul 31, 2016, 07:43 AMQuote from: EK.CrystalBlue on Jul 31, 2016, 07:41 AMTHIS IS NOT A FREAKING HTTP MODULE!
this is a socket. sockets can on tcp and udp in almost all languages
YOU ARE A FREAKING IDIOT! YOU NEED TO CONNECT TO THE VCMP SERVER USING UDP!
Masterlist is done with HTTP, not the query system -_-
The error you posted says your HTTP reply is wrong, which is why any sane person would assume that's where you need help with.
But I followed the same things as shown in ysc's masterlist. Can you tell me what HTTP reply shall I give? I found nothing in ysc's masterlist.
Anyways, why isn't the server responding to my UDP message?
Quote from: KAKAN on Jul 31, 2016, 02:41 PMQuote from: Thijn on Jul 31, 2016, 09:42 AMQuote from: KAKAN on Jul 31, 2016, 07:43 AMQuote from: EK.CrystalBlue on Jul 31, 2016, 07:41 AMTHIS IS NOT A FREAKING HTTP MODULE!
this is a socket. sockets can on tcp and udp in almost all languages
YOU ARE A FREAKING IDIOT! YOU NEED TO CONNECT TO THE VCMP SERVER USING UDP!
Masterlist is done with HTTP, not the query system -_-
The error you posted says your HTTP reply is wrong, which is why any sane person would assume that's where you need help with.
But I followed the same things as shown in ysc's masterlist. Can you tell me what HTTP reply shall I give? I found nothing in ysc's masterlist.
Anyways, why isn't the server responding to my UDP message?
I'd first enable verbose mode on the plugin.
The error you're getting basically means you're not outputting anything.
Thanks
@Thijn, that helped me a lot!
Another question, do I need to have a fixed port for the UDP server or any port will do the work? Currently, random port doesn't work and I can't try the same port for both the apps.
:edit: Having a fixed port doesn't work too( I used port 8192 on UDP server, and 8192 for VCMP server, did it from 2 different PCs )
You don't need to make an UDP server. The VCMP server is one.
1. You load the announce plugin on your vcmp server
2. That will do an HTTP post to the announce server
3. That announce server (Which is basically an web server/something listening on TCP port 80) will do an UDP request to the VC:MP server using the following protocol: http://wiki.vc-mp.org/wiki/Query_Mechanism
4. If the VC:MP server is online, you add it to your list
Quote from: Thijn on Aug 01, 2016, 04:13 PMYou don't need to make an UDP server. The VCMP server is one.
You do need a UDP socket, though, because you can't tell if the VC:MP server is online unless it sends you a good response back. That response is another UDP packet.
You shouldn't need a full-fledged UDP
server, though. A socket is sufficient.
Quote from: EK.CrystalBlue on Jul 30, 2016, 04:55 PMTry using Wireshark to capture the packets
[or any other pakit snifer]
and host the masterlist on another PC so it can check network traffic.
if you find that it successfully reply then fuck your pc otherwise find out why it isn't making the pakits
Wireshark(WinPcap) doesn't support loopback capture on Windows. Unless you install Npcap instead of WinPcap.
Quote from: Stormeus on Aug 01, 2016, 04:53 PMQuote from: Thijn on Aug 01, 2016, 04:13 PMYou don't need to make an UDP server. The VCMP server is one.
You do need a UDP socket, though, because you can't tell if the VC:MP server is online unless it sends you a good response back. That response is another UDP packet.
You shouldn't need a full-fledged UDP server, though. A socket is sufficient.
I can't get replies back if I create only a socket.
:edit: Here's the code which I'm using to send the UDP packets:-
var dgram = require('dgram');
function checkUDP( ip, port )
{
//Split the IP.
var ip2 = ip.split('.');
//This are the packets to be sent.
var packets = "VCMP";
ip2.forEach(function(value){
packets += String.fromCharCode( value );
});
packets += String.fromCharCode( port & 0xFF );
packets += String.fromCharCode( port >> 8 & 0xFF );
packets += "i";
console.log( packets );
//Create the UDP client.
var udp = new dgram.createSocket('udp4');
udp.on('message',(msg,rinfo) => {
console.log("recieved message from: " + rinfo + ". Message: " + msg );
if( msg == "MP04" ){
udp.close();
return 1;
}
else {
udp.close()
return 0;
}
} );
udp.on('listening', function () {
var address = udp.address();
console.log('UDP Server listening on ' + address.address + ":" + address.port);
});
//Send the message
udp.send(packets, 0, packets.length, Number(port), ip, function(err, bytes) {
if (err) return console.log( err );
console.log('UDP message sent to ' + ip +':'+ port + " " + bytes);
//client.close();
});
}
checkUDP( "127.0.0.1", "8192" );
I see it prints that it sent the message successfully, but I never receive it back. I think it's a problem between NodeJS and C++. I did another test, with another nodejs server, which worked out fine. It didn't work with any C/++ script though.
http://paste.thijn.ovh/oqitederaz.coffee
That seems to work fine.
Quotethijn@fatcow ~/tmp % node node-vcmp-query.js
UDP message sent to 91.121.134.5:8192 11
{ passworded: 0,
players: 12,
maxplayers: 100,
hostname: '[0.4] littlewhitey\'s VC-MP Server',
gamemode: 'LW\'s v2.1 (006) (C++)' }
Quote from: Thijn on Aug 01, 2016, 09:45 PMhttp://paste.thijn.ovh/oqitederaz.coffee
That seems to work fine.
Quotethijn@fatcow ~/tmp % node node-vcmp-query.js
UDP message sent to 91.121.134.5:8192 11
{ passworded: 0,
players: 12,
maxplayers: 100,
hostname: '[0.4] littlewhitey\'s VC-MP Server',
gamemode: 'LW\'s v2.1 (006) (C++)' }
Awesome. Thanks! Going to test it
:edit: Ah, I found the mistake, anyways, thanks a lot! The error was with String.fromCharCode Thanks again!
Topic locked.