Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C++] Sockets
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Sat Nov 08, 2008 9:22 pm    Post subject: [C++] Sockets Reply with quote

I have a ghetto instant messenger that seems to connect fine on localhost, but it can't connect in LAN or the actual internet.

During LAN, it connects, then exits so then I assume that it did not connect and in the internet, the server doesn't even receive a signal from the client.

Does anyone know why? Do I have to connect to a VPN or port forward anything?

Edit: Uploaded for testing.
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sun Nov 09, 2008 6:19 am    Post subject: Reply with quote

Well, have you tried forwarding the port in your router (assuming you have a router).
Back to top
View user's profile Send private message MSN Messenger
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Sun Nov 09, 2008 7:06 am    Post subject: Reply with quote

I haven't, but I'm going to [right now]. Any idea as to why it doesn't even working within the LAN?
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sun Nov 09, 2008 7:33 am    Post subject: Reply with quote

post source and we can help.
_________________
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sun Nov 09, 2008 8:23 am    Post subject: Reply with quote

Try setting the host to 127.0.0.1 and see if you can run both server and client and connect. If you can't then it's probably a programming error, else it's a connection error.
Back to top
View user's profile Send private message MSN Messenger
Box
Grandmaster Cheater
Reputation: 0

Joined: 16 Oct 2007
Posts: 541

PostPosted: Sun Nov 09, 2008 11:54 am    Post subject: Reply with quote

try making a mini connection to by pass your router

1.open network connections click create a new connection hit next, hit next again make sure you have connect to the internet checked click click set up my connection maually then hit next again then make sure you check connect to broadband that reqires a user name and password hit next put in your true internet server provider name then hit next then type in the username and password for your internet service hit next then hit finsish connect to it and you will have 2 connections opend one is you internet and one is your server(wan miniport) next go to its status then go to details now give the person thats tyrying to connect to your server your client ip address then the port your running your server on then they will put your ip in a text form or what ever and the port the chat server is on then they hit connect while your server is listening and they connect you you then you can talk enjoy Smile

_________________
zurkei wrote:
Wow box your a real dick, I can't believe I actually thought that you were telling the truth...

Fact: no one tells the truth on cheat engine fourms
Back to top
View user's profile Send private message
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Sun Nov 09, 2008 7:51 pm    Post subject: Reply with quote

noz3001 wrote:
Try setting the host to 127.0.0.1 and see if you can run both server and client and connect. If you can't then it's probably a programming error, else it's a connection error.


I know for sure it's a connection error, but I just don't know why. I'll try what Box said and see if it works (and if I have time, I'll post the source).
Back to top
View user's profile Send private message
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Mon Nov 10, 2008 3:10 am    Post subject: Reply with quote

Make sure you are using the right Lan IP, ex. Mine is:
192.168.1.100
and my sisters is
192.168.1.97

and dont use 127.0.0.1

/\ This is the error i made, when i tried and failed...
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Mon Nov 10, 2008 3:12 am    Post subject: Reply with quote

Anden100 wrote:
Make sure you are using the right Lan IP, ex. Mine is:
192.168.1.100
and my sisters is
192.168.1.97

and dont use 127.0.0.1

/\ This is the error i made, when i tried and failed...



.... 127.0.0.1 is to test it on the same computer.
Back to top
View user's profile Send private message MSN Messenger
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Mon Nov 10, 2008 5:42 pm    Post subject: Reply with quote

Anden100 wrote:
Make sure you are using the right Lan IP, ex. Mine is:
192.168.1.100
and my sisters is
192.168.1.97

and dont use 127.0.0.1

/\ This is the error i made, when i tried and failed...


I'm sort of not that dumb (no offense). I know all the LAN IPs tried them and doesn't work. I'll test it again today with the ports forwarded.
Back to top
View user's profile Send private message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Mon Nov 10, 2008 9:06 pm    Post subject: Reply with quote

Intra-lan connections do not require port forwarding.
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish
Back to top
View user's profile Send private message
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Mon Nov 10, 2008 9:16 pm    Post subject: Reply with quote

Can a computer in WLAN connect with one in LAN?
Back to top
View user's profile Send private message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Mon Nov 10, 2008 11:13 pm    Post subject: Reply with quote

Theoretically there can be special rules for WLAN, but usually WLAN should get the same treatment. What kind of router do you have?
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish
Back to top
View user's profile Send private message
Spawnfestis
GO Moderator
Reputation: 0

Joined: 02 Nov 2007
Posts: 1746
Location: Pakistan

PostPosted: Tue Nov 11, 2008 10:45 am    Post subject: Reply with quote

nog_lorp wrote:
Theoretically there can be special rules for WLAN, but usually WLAN should get the same treatment. What kind of router do you have?

It should act like a direct line in, no matter the router.

_________________

CLICK TO HAX MAPLESTORAY ^ !!!!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Tue Nov 11, 2008 11:21 am    Post subject: Reply with quote

I got it working! Thank you guys (I had to portforward my router and put the 1200 behind my IP).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites