Results 1 to 7 of 7

Thread: Access remote machine using VPN in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2003
    Posts
    4

    Access remote machine using VPN in VB

    I have a VB application that scans certain documents and later prints them. At present all users access this app through terminal services. Note that the server is in UK and scanning is done on that server. We are in the process of changing the way we use the appliaction i.e. use the exe directly instead of through terminal services. Also a local server in India will be used for faster access. But the scanning still needs to be done in UK. Also all scanned files can be viewed before printing. How do I connect to the UK server via VPN thorugh my VB code in order to view the scanned files. I need the code snippet to connect and dislay the image.

  2. #2
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    Does ur app requires u 2 be in a subnet?
    If not, then a VPN is not required, a simple TCP connection should
    connect both server and client and image transfer could take
    place.
    ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
    Programming is fun, but only if you're not on a tight deadline
    So I consider all those working engineers sad people

    VB FTP class
    3 page PHP crash course
    Crash Course on DX9 Managed with VB.NET covering basics till terrain creation

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2003
    Posts
    4
    no not necessary to be in a subnet. But how do I make this simple TCP connection via my vb code?

  4. #4
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    use winsock.
    I wont go into details here but u could find tons of tutorials on it
    either thru vbforums or elsewhere. Or go for PSC to get a ready
    made demo.
    ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
    Programming is fun, but only if you're not on a tight deadline
    So I consider all those working engineers sad people

    VB FTP class
    3 page PHP crash course
    Crash Course on DX9 Managed with VB.NET covering basics till terrain creation

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2003
    Posts
    4
    I am connected to my remote server via VPN and can have access to that machine. Isnt it possible to connect to my remote server via VB as if the remote server were in my own domain.I assume that in this case I would require some midlevel code for the VPN. If I use winsock I would need a server application constantly running which would listen to the required port, which I now am trying to avoid. Any info on the VPN area would really be a blessing. Also any other suggestion would really help me.

  6. #6
    New Member
    Join Date
    Jul 2003
    Location
    Poor me, the Netherlands but: could even be worse
    Posts
    1

    VPN

    If you have a VPN connection running and all your network settings are OK, what is your problem ?? Or: Where do we start.
    Tell me a bit about your configuration. Do you have 0 or 1 or 2 routers ?? What Router ? Do you use ADSL, DDSL, ISDN-2 or TelephoneLine or rope ?
    Last edited by Porridge; Jul 17th, 2003 at 11:31 PM.

  7. #7
    Addicted Member
    Join Date
    Aug 2003
    Location
    Earth
    Posts
    139

    Lightbulb

    well 2 things you can do .

    1).create the vpn connection on the server in india and share it then local clients just need to run your app

    2).have every client first create its vpn and then launch the your app.

    personally i have tried the first case .but the info you have provided is limited so good luck and write back if you need help setting up!
    Last edited by a00; Sep 25th, 2003 at 07:05 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width