• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is there any way to overcome the router port forwarding on tcp/ip application

 
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
need to connect to computer over tcp/ip i have the external ip but without port forwarding I can't connect to the server . Is there any way to configure the server to accepts connection on the external ip and port define by the server without configuring the router ? (how does emule, FogCreek CoPilot, LogMeIn does it ? or other peer to peer application )
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Meir Yan wrote:how does emule, FogCreek CoPilot, LogMeIn does it ? or other peer to peer application



Two possible answers...

1. They don't. In a peer to peer environment. It is not possible for two peers, both of which behind a router, to communicate. Only peers that can be reached can be connected to, so... if a peer is behind a router, the peer can't be reached. It must initiate the connections, and only to other peers that are reachable.

2. They use UPnP. Many routers should support a programmatic protocol to forward the port. The program connects to the router (which is generally its default gateway) and request that a port gets forwarded to it. The router doesn't have to be manually configured to forward the port, but needs to be configured to allow UPnP.

Henry
 
ben josh
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the answer , can you please explain me what do you mean by
"... It must initiate the connections .."
in simple words can you explain the scenario?
 
Paddy spent all of his days in the O'Furniture back yard with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic