Minecraft serer localhost

Okay, i have my own public server that i have port forwarded and used to work and everything. But because 1.7 came out, i decided to start fresh. I made a new server and everything with bukkit plugins running on the same port. Whenever i try to acess the server from a different computer on the same Wi-Fi connection using localhost, it gives me an error, this one java.net.ConnectException: Connection Refused: localhost/127.0.0.1:25565 on my macbook pro, windows it says the same thing except that at the end it says "no further information" Even if i try to connect using the ip address used for my server it won't work, and yes in my server files ip address is blank like its supposed to be. Please help.

Added (1). I tried using my ip address too! And before when my server USED to work, it would connect with localhost. Localhost is for the whole Wi-Fi connection

"Whenever i try to acess the server from a different computer on the same Wi-Fi connection using localhost, it gives me an error"

Of course it gives you an error. Localhost is if you are trying to connect to the server that is hosted on the SAME computer. If you are hosting it on a different computer then you need to use the server's ip address to connect.

EDIT: Localhost is not for the whole Wi-Fi. Localhost is the exact same as typing 127.0.0.1 which is a loopback ip address used to target your own machine. It is most used for connecting to an server running on the same machine. IP addresses on a network must be unique or you will have packet collisions and likely each machine with the same IP address will get "limited connection".

TLDR: You were mistaken, you have to use the local ip address (192.168.0.xxx or 192.168.1.xxx or 10.0.0.xx) to connect to a server located on your network.

EDIT 2: double check and make sure that the port on the server is the same. If it is changed then it will give you that error.