For a while now I have tried to create a Visual Basic program which can send data over the internet. I have tried both UDP and TCP. However I cannot get the data to a computer which is not on my network, I need advice on how to do this and if Automatic Port Mapping is the right direction to research into?
Thanks for any help
Ply.
Automatic Port Mapping
Started by plypencil, Jun 24 2010 06:26 AM
1 reply to this topic
#1
Posted 24 June 2010 - 06:26 AM
|
|
|
#2
Posted 28 June 2010 - 06:59 PM
plypencil said:
For a while now I have tried to create a Visual Basic program which can send data over the internet. I have tried both UDP and TCP. However I cannot get the data to a computer which is not on my network, I need advice on how to do this and if Automatic Port Mapping is the right direction to research into?
Thanks for any help
Ply.
Thanks for any help
Ply.
Auto port mapping would be an option, but a way that I like to use is the same way that bot nets and "RATS" and other malware work on, I believe that the proper term is reverse connection ?
Basically how it works, you forward a specified port on your router, lets say port 8000 and set the destination to your computers local IP on the network lets say its 192.168.1.4
now you go and make two separate applications a server and a client. The server is that application that will accept all the connections that your router forwards to your computer, now on the client you want to use a tcp client to connect to your routers IP/ your external IP on the port that you have forwarded. Also note that on your server should you chose to use reverse connection your application on the server portion your should spin off a new thread each time somebody connects so that the app doesn't freeze. Hope this helps.


Sign In
Create Account

Back to top









