The essence of the problem is as follows ...

There is a server (with ++, libcurl). It requests access_token and receives it (no error). But when using this access_token in the access_token API method secure.checkToken an error occurs:

 "User authorization failed: access_token was given to another ip address." 

Offline user token. And if I log in via ssh to the server and generate access_token from the console, then error checking does not occur.

What could be the difference between getting an access_token and getting it from the console, that a similar error occurs?

PS: in FB, getting access_token similar, and subsequent testing works without problems.

    1 answer 1

    Problem solved. It turns out that if you send a request from the console, then for some reason the request goes through the interface with ip4. And if the same request is sent programmatically, then it goes through the interface with ip6. "Removed" in the settings on the ip6 server and it all worked.