[Resolved] Simple enet program fails

Started by
16 comments, last by hplus0603 12 years, 11 months ago
Even more interesting: I removed Lua and Luabind, so I could package up the project and post it here, and now the connection magically works...

10x Faster Performance for VR: www.ultraengine.com

Advertisement
Because of the fact that the connection works when you specify your local lost (127.0.0.1), I really think that you are trying to connect to the wrong address. An address of "192.168.0.1" would be reserved for the address of your router. You should be trying to connect to an address like, 192.168.0.2. Or, if you were on a standard setup, 192.168.1.2, or 192.168.1.3 .... etc
Wisdom is knowing when to shut up, so try it.
--Game Development http://nolimitsdesigns.com: Reliable UDP library, Threading library, Math Library, UI Library. Take a look, its all free.

Even more interesting: I removed Lua and Luabind, so I could package up the project and post it here, and now the connection magically works...


Ouch. Are you sure you have made a full recompile of the project? If you insert those libraries again, is the problem reproduced? Can you ping directly via your O/S to the address you are trying to connect to?

Contrary to what the previous poster says, there's nothing wrong with having a zero as the third octet in an IPv4 address. For instance, this is the default on some Netgear routers.
They also do not have to (but usually do in typical setups) reside on the first IP in the range. There's nothing non-standard about this and it likely has nothing to do with your problem.
The IP address thing is resolved. I just haven't done any network programming for a while, so I forgot the default local address.

I'll do some more testing and figure out exactly what I am including that messes up enet.

10x Faster Performance for VR: www.ultraengine.com

Well, it works fine now after I added everything back in. Maybe my change to the IP address somehow wasn't get recompiled.

10x Faster Performance for VR: www.ultraengine.com

Josh, that is great, but I am curious, you are saying it works using the 192.168.0.1 address? Sorry, I just have to know.

Oh and to SymLinked, thanks for voting down all of my posts, hopefully the moderators can rectify it.
Wisdom is knowing when to shut up, so try it.
--Game Development http://nolimitsdesigns.com: Reliable UDP library, Threading library, Math Library, UI Library. Take a look, its all free.
No, I just use "localhost" and it works.

10x Faster Performance for VR: www.ultraengine.com


Josh, that is great, but I am curious, you are saying it works using the 192.168.0.1 address? Sorry, I just have to know.

Oh and to SymLinked, thanks for voting down all of my posts, hopefully the moderators can rectify it.


Please, no discussing personal issues on the board, or I will have to moderate it. Take it to PM if it matters.

Moderators do not get involved in ratings issues, unless there is some bug with the system. Over time, ratings tend to work themselves out.
enum Bool { True, False, FileNotFound };

This topic is closed to new replies.

Advertisement