We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

C++ winsock for computer to computer over internet

Hi !
I'm trying to learn about sockets using winsock in c++. What I want to do is have one computer (my computer) act as a mini server for my friend to connect to directly from his house (different ISP). I am wondering if it is possible using sockets to connect directly without the need to use webpages ? If yes, please direct me to the relevant resources.

I have a basic chat program set up which works fine as long as it's within my router (I can connect to a 2nd computer in my local network with a 192.168.x.x address). It fails to bind when I try to connect across the internet to my friend at an address like 144.x.x.x (or vice versa). I've also tested this with a chat server I found online and it also fails over the internet.

To quote what I have read somewhere I need to, "redirect traffic to that port to your server, which will have a 192.168 address". I don't know how to do this...

I have scanned my ports using a website which found no open ports (probably due to my firewall?).

'tracert' stops hoping after 5 nodes when trying to hop to my friend's world wide web IP.

Please help! Thank you !!

1
Contributor
0
Replies
1
View
Question
Answered
brickbuilder
Newbie Poster
1 post since Mar 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Self-Answered as of 1 Year Ago

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0655 seconds using 2.67MB