Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Computer to Computer chat

40 views
Skip to first unread message

Pongs

unread,
Dec 20, 2008, 6:05:42 PM12/20/08
to
Hello, I have just started understanding WinSock and I'm wondering how
to make a program talk to another computer through the internet? I
have the other's IP address, though both computers are on networks (I
couldn't seem to get any example codes to work with my computer, I
think it was because of the router...) I know the port that I will be
talking through and listening on. I just want this program to send
simple messages that will be understood on the other side. i.e
let p! = program 1
let P2 = program 2

P1 -> P2: msg = TALK
P2 -> P1: msg = CONFIRM
P1 -> P2: msg = Hello there
P2 -> P1: msg = CONFIRM

I have been able to work with the inet (sorry if I am getting the
names wrong), I was using other code that would listen through a
certain number of ports and then when it got a connection listen to
it..but this code needed to be excepted by their firewall, if I only
listen to one port will the firewall stop me? if I listen on a certain
port will the firewall block me (the firewall is just normal windows
XP firewall, and set on medium). Though I know that the answer will
very because of the lack of information, so please ask questions, and
send examples. I program in C/C++ and am learning MFC, and will be
open to the idea of DirectPlay if it is easier to use.

Thanks in advance,
Jon

Sten Westerback (MVP SDK 2005-6 :)

unread,
Feb 10, 2009, 10:46:20 AM2/10/09
to

"Pongs" <jonatha...@gmail.com> wrote in message
news:2232375c-2dad-40f1...@i18g2000prf.googlegroups.com...

Assuming netbios port is allowed in firewall settings, i would suggest that
you use a higher level protocol such as Named pipes (or even Mailslots).

As for firewall settings you will just have to find out -- either from
firewall settings or by trying with telnet ip:port .
In general however your app would be listening on ONE port.

Ofcourse you would first be testing your code locally so firewall wont
matter.

- Sten


daminal...@clearenergyairconditioningelectricalllc.mygbiz.com

unread,
Mar 20, 2013, 11:34:49 PM3/20/13
to
what is this i just want basic instruction on video chat................????
0 new messages