Networking is complicated. There are a vast amount of things that can go wrong and if
any of them do you won't be able to connect. If you didn't catch the hint, this means it is near impossible to help you with absolutely zero information about your project.
Now, because you strike me as rather new to networking I will assume you are making a mistake common to those learning the concepts and hopefully get lucky in my guess.
If you are connecting with the IP address 127.0.0.1, it is a localhost IP address and will
not work between computers because it is not the computer's real IP address.
If you are using an IP address starting with 192 or 10 then it is your
internal IP address (there are other internal IP addresses as well, but the most common ones start with one of those numbers). This means that only computers in your actual household will be able to connect.
If none of those numbers look familiar to you then it just
may be possible you are actually using your
external IP address, aka. the IP address you get when going to
whatismyip.org, aka. the IP address of your actual router, aka. the IP address accessible to the entire world. However, in this case, as it is your router's IP address, connecting to it won't connect to your computer unless you forward all the ports that your game uses to point to your computer's
internal IP address so that when someone attempts to connect to your external address your router will pass all the info to your computer and thus your game.
To actually forward your ports requires you to go into your router's settings and has nothing to do with your game itself.
Now, all this said, would you mind telling us a few basic things?
- What is your host (aka. the computer running the 'server') IP address?
- If it is different, what is the IP you are trying to connect to?
- When other computers try to connect are they inside your house or outside your house?
- If outside the house, have you forwarded the correct ports on your router?