Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access a vfp exe without port forwarding

Status
Not open for further replies.

MarkLeT

Programmer
Feb 27, 2004
4
US
My apologies if this has been answered elsewhere.

I have created a vfp system tray program (exe1) that will collect public IP, local IP, and random port information for the computer on which it resides and transmit it to a secure server. It will then "listen" on that port for incoming connection (like Logmein). I wish to create another program that will pick up that information and communicate with exe1 to exchange information. Basically, I wish to create a web server without having to configure port forwarding. I figure if Logmein and Teamviewer can do it, it must not be too difficult to set up, but I can find no information anywhere on the web on how to do it. Please help!
 
I figure if Logmein and Teamviewer can do it, it must not be too difficult to set up...
If it was that easy, there would be a lot more people doing it and they would be charging a bunch of money for it. [smile]
Add to that, there is some major authentication going on behind the scenes.

I'm sure something could be set up to relay information or connections. But in order to avoid port forwarding, you'll have to leave that port open - as in, not behind any firewall. Which isn't really a good idea.
But, when you open a socket to listen, you will have to know the port number. So you won't be using a random port number anyway.


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
No matter the port number, these programs somehow go around firewalls. But even if the port is open and not forwarded, how do you navigate to the local ip address within the network?
 
They don't really go around firewalls. When they're installed, they 'Allow' themselves through the port(s) they use in the firewall. That is something there is no getting around.
To navigate to an open port using http, you add the port to the end of the IP. As in Telnet uses OPEN xxx.xxx.xxx.xxx 123. Using straight IP connections, you specify the IP and port in whatever socket control you use:
Code:
WITH THISFORM.oWinsock.oSock
   .protocol = sckTCPProtocol
   *... Remote Host name
   .remoteHost = Thisform.cTCPHost
   *... Remote Port
   .remotePort = Thisform.cTCPPort
   *...   '0' to use any available Local Port.  If you've opened a secific
   *...   port before, you'll have to wait for the ip stack to release it
   *...   before it can be reused.
   .localPort = 0
   .OBJECT.CONNECT()
ENDWITH


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top