"Failed to verify username!" error occurs when minecraft has problems connecting to login server.
Steps to fix this.
i did that but still failed verify username, there have whitelist? if have how to whitelist
Tutorial above updated.
You should set online-mode=false in server.properties
More information from https://minecraft.fandom.com/wiki/Server.propertie...
Set this to false only if the player's server is not connected to the Internet. Hackers with fake accounts can connect if this is set to false! If minecraft.net is down or inaccessible, no players can connect if this is set to true. Setting this variable to off purposely is called "cracking" a server, and servers that are present with online mode off are called "cracked" servers, allowing players with unlicensed copies of Minecraft to join.