Access API by IP — Guild Wars 2 Forums

Access API by IP

When sending looking up the DNS entry of api.guildwars2.com you get two entries (https://mxtoolbox.com/SuperTool.aspx?action=a:api.guildwars2.com&run=toolpage):
A 34.226.105.80 (https://34.226.105.80/)
A 54.85.19.255 (https://54.85.19.255/)
However when trying to access the API by either of these an unsafe SSL certificate is returned and when continuing the server returns 403 - Access denied.

Is there any way of accessing the API directly by IP?

Comments

  • darthmaim.6017darthmaim.6017 Member ✭✭
    edited July 19, 2018

    No. You can hardcode the IPs though, for example by adding them to /etc/hosts, using a custom DNS server or overriding the name resolution of the language/framework/... you are using.

    There is no guarantee that these IPs remain the same in the future though, so hardcoding the IPs is not adviced.

  • Nokomis.5076Nokomis.5076 Member ✭✭✭

    @Artenuvielle.6025 said:
    However when trying to access the API by either of these an unsafe SSL certificate is returned and when continuing the server returns 403 - Access denied.

    They are only "unsafe" because the IP is not the hostname which is written in the SSL certificates fields to which host the certificate belongs.

    Was I able to help you or give you a hint? Click on Helpful and/or Thumbs up, I would appreciate it alot!
    When you encounter a bug ingame, at first you should file a ticket via the ingame command /bug, as only this way the devs will know exactly where you were, when the bug happened.

©2010–2018 ArenaNet, LLC. All rights reserved. Guild Wars, Guild Wars 2, Heart of Thorns, Guild Wars 2: Path of Fire, ArenaNet, NCSOFT, the Interlocking NC Logo, and all associated logos and designs are trademarks or registered trademarks of NCSOFT Corporation. All other trademarks are the property of their respective owners.