Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Client /Server application with VPN connection

Client /Server application with VPN connection

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhelptutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bugslayer1
    wrote on last edited by
    #1

    I wrote a Server/Client application based on TCP/IP. Here are several cases I tested: 1. The applicaiton works fine when both the client and server programs are installed inside a company wired network. 2. The applicaiton works fine when the server program is installed in a computer that is VPNed in while the client program is installed in a company wired network. 3. The client program cannot connect to the server program when the client program is installed in a computer is logged in through VPN into a company network. Can any one provide suggestion on how to solve the problem in case 3?

    2 M 2 Replies Last reply
    0
    • B Bugslayer1

      I wrote a Server/Client application based on TCP/IP. Here are several cases I tested: 1. The applicaiton works fine when both the client and server programs are installed inside a company wired network. 2. The applicaiton works fine when the server program is installed in a computer that is VPNed in while the client program is installed in a company wired network. 3. The client program cannot connect to the server program when the client program is installed in a computer is logged in through VPN into a company network. Can any one provide suggestion on how to solve the problem in case 3?

      2 Offline
      2 Offline
      224917
      wrote on last edited by
      #2

      Bugslayer1 wrote:

      3. The client program cannot connect to the server program when the client program is installed in a computer is logged in through VPN into a company network.

      Are you able to establish connection to the server socket using telnet.exe from the client box?

      -Suhredayan

      1 Reply Last reply
      0
      • B Bugslayer1

        I wrote a Server/Client application based on TCP/IP. Here are several cases I tested: 1. The applicaiton works fine when both the client and server programs are installed inside a company wired network. 2. The applicaiton works fine when the server program is installed in a computer that is VPNed in while the client program is installed in a company wired network. 3. The client program cannot connect to the server program when the client program is installed in a computer is logged in through VPN into a company network. Can any one provide suggestion on how to solve the problem in case 3?

        M Offline
        M Offline
        Moak
        wrote on last edited by
        #3

        Some thoughts: - Can you clarify what's the difference between case 2 and 3 (who's client/server, what errors exactly)? - Have you ruled out firewalling problems... tried different TCP listening ports or port forwarding? - Have you talked with your company's network administrator, perhaps this kind off traffic is prevented on purpose? - Have you tried with another client/server application in order to test network connection? /M

        Webchat in Europe :java: (only 4K)

        modified on Tuesday, March 16, 2010 6:12 AM

        B 1 Reply Last reply
        0
        • M Moak

          Some thoughts: - Can you clarify what's the difference between case 2 and 3 (who's client/server, what errors exactly)? - Have you ruled out firewalling problems... tried different TCP listening ports or port forwarding? - Have you talked with your company's network administrator, perhaps this kind off traffic is prevented on purpose? - Have you tried with another client/server application in order to test network connection? /M

          Webchat in Europe :java: (only 4K)

          modified on Tuesday, March 16, 2010 6:12 AM

          B Offline
          B Offline
          Bugslayer1
          wrote on last edited by
          #4

          Here are detailed description of the problem: Case 2: client program on computer A within company LAN. server program on computer B VPNed in company LAN using Sprint aircard and Sonic VPN I can connect from computer A to B Case 3: client program on computer B VPNed in company LAN using Sprint aircard and Sonic VPN server program on computer A within company LAN I cannot connect from computer B to A In both cases, I have added the client and the server programs in Firewall exceptions. The PCs are Windows Vista. I also did some other tests. 1. A program from the followng link: Multi-threaded Client/Server Socket Class[^] This application has the same results as mine. Both applications use Winsock2. 2. A program from the following link: Simple File Transfer Using the Network Development Kit 2.0[^] This program works. This program use MFC CSocket. 3. I can also connect to other SQL server by ADO from the computer B.

          M 1 Reply Last reply
          0
          • B Bugslayer1

            Here are detailed description of the problem: Case 2: client program on computer A within company LAN. server program on computer B VPNed in company LAN using Sprint aircard and Sonic VPN I can connect from computer A to B Case 3: client program on computer B VPNed in company LAN using Sprint aircard and Sonic VPN server program on computer A within company LAN I cannot connect from computer B to A In both cases, I have added the client and the server programs in Firewall exceptions. The PCs are Windows Vista. I also did some other tests. 1. A program from the followng link: Multi-threaded Client/Server Socket Class[^] This application has the same results as mine. Both applications use Winsock2. 2. A program from the following link: Simple File Transfer Using the Network Development Kit 2.0[^] This program works. This program use MFC CSocket. 3. I can also connect to other SQL server by ADO from the computer B.

            M Offline
            M Offline
            Moak
            wrote on last edited by
            #5

            I see, so the only difference between your cases is the direction of the network connection. Would you mind trying the P2P software linked below in my signature? It runs both as server and client... so you be able test both directions simultaneously (computer A connecting B, computer B connecting A). In case a connection fails, is there a different error message than "timeout"? One more thought. If one of the computer has multiple network adapters (run 'ipconfig' in console window), you can try connecting different IP addresses. If the VPN connection does absolutely not work for you, check with your network admin before you try to circumvent possible filters. ;) /M

            Webchat in Europe :java: Now with 26% more Twitter

            modified on Thursday, March 18, 2010 5:48 PM

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups