I am trying to make an IP chat using TcpServer.

As many people are behind a router, how would it be possible to connect to them directly?

I know how to call up my external ip, and how to find out my internal one assigned by the router, but how would i connect to the specific pc and not the router?

Sorry if it is a bit mumbo jumbo, pop a reply if you can help or anything!

Thanks

Recommended Answers

All 2 Replies

That's not your problem. Client contacts router to contact you, router will take care of routing, that's its job.
You never talk to clients behind a router directly.

That's not your problem. Client contacts router to contact you, router will take care of routing, that's its job.
You never talk to clients behind a router directly.

Thanks very much - that does make sense.. i think the reason why i got all confused was because i was worried about my program interfering with two clients behind the same router... guess this would have to be a function built into my program to solve this

Cheers

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.