how to connect others behind router
how to connect others behind router
how to connect others behind router
how to connect others behind router
how to connect others behind router
how to connect others behind router how to connect others behind router how to connect others behind router how to connect others behind router how to connect others behind router how to connect others behind router how to connect others behind router how to connect others behind router
how to connect others behind router how to connect others behind router
how to connect others behind router
Go Back  Xtreme Visual Basic Talk > > > how to connect others behind router


Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2010, 07:28 AM
jimmyng jimmyng is offline
Newcomer
 
Join Date: May 2010
Posts: 1
Default how to connect others behind router


i tried to make a communication program by winsock,by tcp/ip
however, how to connect other computers if they are behind router?

e.g.
external ip: 1.2.3.4
internal ip: 192.168.0.101

i tried the method of port forwarding
(it is okay in my computer,but how about on other computers? OR i need to ask other users to set port forward?)

OR i need to use other tool?(not winsock?)
Reply With Quote
  #2  
Old 05-24-2010, 10:06 AM
surda surda is offline
Newcomer
 
Join Date: May 2010
Posts: 1
Default

winsock works, but instead use reverse connection, instead of you connecting to them, they will connect to you, and throw an option to enable port listing to yours so you can allow connections whenver you want to.
Reply With Quote
  #3  
Old 05-24-2010, 12:15 PM
ZaCkOX's Avatar
ZaCkOX ZaCkOX is offline
Contributor
 
Join Date: May 2006
Location: CA
Posts: 645
Default If they want to host...

Ask them to setup their ports. If they won't then it's up to you to host.
__________________
ZaCkO ... Who is your attitude?
Reply With Quote
  #4  
Old 05-24-2010, 04:40 PM
dilettante's Avatar
dilettantehow to connect others behind router dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,520
Default

Or you can use the UPnP library in XP or later. Then your program can map and unmap the port(s) as required, as well as find the router's current public IP address.

Not all routers support UPnP, not all have the feature turned on, and not all PCs have their firewall open for UPnP traffic though. Aside from that it's like magic.
Reply With Quote
Reply

Tags
communication, port, router, winsock


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
how to connect others behind router
how to connect others behind router
how to connect others behind router how to connect others behind router
how to connect others behind router
how to connect others behind router
how to connect others behind router how to connect others behind router how to connect others behind router how to connect others behind router how to connect others behind router how to connect others behind router how to connect others behind router
how to connect others behind router
how to connect others behind router
 
how to connect others behind router
how to connect others behind router
 
-->