Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,429 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,899 people online right now. Registration is fast and FREE... Join Now!




Connecting two Pcs

 
Reply to this topicStart new topic

Connecting two Pcs, With routers

gadu
14 Jan, 2008 - 09:51 PM
Post #1

New D.I.C Head
*

Joined: 17 Dec, 2007
Posts: 1


My Contributions
Hi Guys

I Want create a program that make reverse connection.

I already know make direct connection, but direct connections are not usefull on pcs that have routers or are on a LAN

So that's my problem, i wanna know if is possible make a connection when you have two Pcs with Router, or one of two pcs must have "200.189.108.189" as a ip?

Ex: Target pc : 192.168.0.1, and My pc: 192.168.0.2
Ps: The computers must be on a diferent network.

A have a last problem..

On C the function

CODE
target.sin_addr.s_addr = inet_addr("127.0.0.1");



Is used by numbers, using reverse connection you need input a no-ip dns host, like "teste.no-ip.org", so what function a can use to transform dns host on a numeric ip??

I hope you understand smile.gif

Thanks everybody
Bye
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/5/08 04:54AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month