Jump to content

Automatic Port Mapping

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
plypencil

plypencil

    Newbie

  • Members
  • Pip
  • 7 posts
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.

#2
Abis24

Abis24

    Newbie

  • Members
  • Pip
  • 6 posts

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.


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.