first off are you running a cracked minecraft if so find where all your sever files are then open up the options.txt or option.txt (which ever one it is) then go down, where it says online mode switch it to false (all lowercase) and then save it close all that stuff run the server program (minecraft_server.jar or the bukkit one) and then try to connect
hope it helps!