<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dave wrote:<div class=""><br class=""></div><div class="">> <span style="font-family: arial, sans-serif;" class="">The better way to get listed on both metaservers is to add metaserver solicitation support in your server.</span></div><div class=""><br class=""></div><div class="">Yes, having the Netrek server pushing data to the metaservers is superior. Thank you for the push in the correct direction!</div><div class=""><div class=""><br class=""></div><div class="">I’ve turned off my port 2591 listener and commented out the listening code. Go ahead and remove <a href="http://netrek.networkmom.net" class="">netrek.networkmom.net</a> from your static polling configuration on metaserver2.</div><div class=""><br class=""></div><div class="">I have metaserver push on UDP:3521 working for the base server status, but not for detailed player list. I’ve decided to leave it at that. Below is output from <a href="http://metaserver1.netrek.org" class="">metaserver1.netrek.org</a>. I’m pushing to each metaserver once every 2 minutes.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> Mins </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Server Host Port Ago Status Flags</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">--------------------------------------- -------- ---- ----------------- -------</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-h <a href="http://netrek.sofurry.com" class="">netrek.sofurry.com</a> -p 2592 15 Nobody playing B</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-h <a href="http://hockey.hyperyoda.org" class="">hockey.hyperyoda.org</a> -p 2592 3 Nobody playing H</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-h <a href="http://continuum.us.netrek.org" class="">continuum.us.netrek.org</a> -p 2592 4 Nobody playing B</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-h <a href="http://netrek.beeseenterprises.com" class="">netrek.beeseenterprises.com</a> -p 2592 1 Nobody playing T S</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-h <a href="http://pickled.netrek.org" class="">pickled.netrek.org</a> -p 2592 0 Nobody playing B</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-h <a href="http://netrek.networkmom.net" class="">netrek.networkmom.net</a> -p 2592 0 OPEN: 1 player B</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-h <a href="http://netrek.redbudcomputer.com" class="">netrek.redbudcomputer.com</a> -p 2592 0 OPEN: 2 players T B</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><br class=""></div><div class="">FYI, here’s a tcpdump of my push packet, with ASCII printout enabled:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">21:40:58.366984 IP 161.35.226.186.56172 > <a href="http://federation.netrek.org" class="">federation.netrek.org</a>.3521: UDP, length 55</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">E..S.X@.@..^.#..E..`.l...?.3b</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><a href="http://netrek.networkmom.net" class="">netrek.networkmom.net</a></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">B</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">2592</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">0</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">1</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">15</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">n</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">n</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">n</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Swift-IPv6</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="">Here’s the format from the C metaserver source:</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> sprintf(here, "%s\n%s\n%s\n%d\n%d\n%d\n%d\n%s\n%s\n%s\n%s\n",</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* version */ "b",</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* address */ m->ours,</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* type */ m->type,</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* port */ m->pport,</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* observe */ m->oport,</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* players */ nplayers,</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* free */ nfree,</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* t-mode */ status->tourn ? "y" : "n",</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* RSA */ isrsa ? "y" : "n",</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* full */ gamefull ? "y" : "n",</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* comment */ m->comment</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> );</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Here’s an earlier version which did not seem to result in a detailed player list on the metaserver port 3522. I’ve since commented out the (not working) detailed player list submission:</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">14:26:38.055190 IP 192.168.0.29.59894 > federation.netrek.org.mc3ss: UDP, length 92</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">...]..<".(:m..E..x.7..@..s....E..`.....d..b</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><a href="http://netrek.networkmom.net" class="">netrek.networkmom.net</a></span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">B</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">2592</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">0</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">1</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">15</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">n</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">n</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">n</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Swift-IPv6</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">0</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">F</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">2</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">0</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">darrellR</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">SwiftRules</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">redacted</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; min-height: 15px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">And the format for that section, repeated per player:</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> sprintf(here, "%c\n%c\n%d\n%d\n%s\n%s@%s\n",</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* number */ players[j].p_mapchars[1],</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* team */ players[j].p_mapchars[0],</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* class */ players[j].p_ship.s_type,</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* ??? note change from design, ship type number not string */</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* rank */ players[j].p_stats.st_rank,</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* ??? note change from design, rank number not string */</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* name */ name,</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* user */ login,</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> /* host */ players[j].p_monitor );</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class="">Now I just have to implement a Swift Netrek Robot so people always have something to shoot at!</div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Darrell</span></div></span></div></div><div class=""><br class=""></div><div class=""><div class=""><br class=""></div><div class=""><div class=""><div><blockquote type="cite" class=""><div class="">On Jul 14, 2020, at 7:13 AM, Dave Ahn <<a href="mailto:ahn@netrek.org" class="">ahn@netrek.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">On Tue, Jul 14, 2020 at 3:10 AM Darrell Root <<a href="mailto:darrellroot@mac.com" class="">darrellroot@mac.com</a>> wrote:<br class=""></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class=""><div class=""><b style="font-variant-ligatures:no-common-ligatures" class="">Is that good enough to get the metaserver to work?</b></div></div></blockquote><div class=""><br class=""></div><div class="">No.</div><div class=""><br class=""></div><div class="">There are two ways for a server to get listed on the metaserver. The old, legacy way is to configure the metaserver to connect to ports 2591 and 2592 to retrieve info for the listing. We generally don't use this anymore. Your implementation is incomplete or inconsistent because it is not returning expected data to the metaserver. I've temporarily added your server to metaserver2 so you can see this and make changes. The metalog is below. Let me know when you are done fixing, and I will remove this manual entry from metaserver2.</div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px" class=""><div class="gmail_quote"><div class=""><span style="font-family:monospace" class=""><span style="" class="">1594734993: connected to <a href="http://netrek.networkmom.net/" class="">netrek.networkmom.net</a> (2591)
</span></span></div></div><div class="gmail_quote"><div class=""><span style="font-family:monospace" class="">1594734993: connected to <a href="http://netrek.networkmom.net/" class="">netrek.networkmom.net</a> (2592)
</span></div></div><div class="gmail_quote"><div class=""><span style="font-family:monospace" class="">1594735099: ERROR: read buffer flooded by server <a href="http://netrek.networkmom.net/" class="">netrek.networkmom.net</a></span></div><div class=""><span style="font-family:monospace" class=""><br class=""></span></div></div></blockquote><font face="arial, sans-serif" class="">BTW, your empty server 2591 is returning an empty player list vs "No one playing." (See continuum's reply when it's empty.) Not sure if this matters.</font><div class=""><font face="arial, sans-serif" class=""><br class=""></font></div><div class=""><font face="arial, sans-serif" class="">The better way to get listed on both metaservers is to add metaserver solicitation support in your server. Your server then sends listing information to one or more metaservers over UDP/3521 (point to metserver[12].<a href="http://netrek.org/" class="">netrek.org</a>). Once you get this working, your server should show up on metaserver1.</font></div><div class=""><br class=""></div><div class=""><div class="gmail_quote"><div class=""><span style="font-family:monospace" class="">
<br class=""></span></div></div></div></div>
_______________________________________________<br class="">netrek-dev mailing list<br class=""><a href="mailto:netrek-dev@us.netrek.org" class="">netrek-dev@us.netrek.org</a><br class="">http://mailman.us.netrek.org/mailman/listinfo/netrek-dev<br class=""></div></blockquote></div><br class=""></div></div></div></div></div></body></html>