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#
  4. connection to server fails

connection to server fails

Scheduled Pinned Locked Moved C#
csharpsysadminlinuxannouncement
3 Posts 2 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.
  • M Offline
    M Offline
    michael wikstrom
    wrote on last edited by
    #1

    I have created a client in C# and a server in C. The Server is run on a linux computer and client on Windows. When the client tries to connect it fails. I have tried modifiyng the server to run on windows, and I am able to establish the connection between two windows computers. It also seems to work connecting a linux version of the client to the server on linux. But it doesn´t work connecting a c# version on windows to the c server on linux.

    C 1 Reply Last reply
    0
    • M michael wikstrom

      I have created a client in C# and a server in C. The Server is run on a linux computer and client on Windows. When the client tries to connect it fails. I have tried modifiyng the server to run on windows, and I am able to establish the connection between two windows computers. It also seems to work connecting a linux version of the client to the server on linux. But it doesn´t work connecting a c# version on windows to the c server on linux.

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      What protocol are you using to connect the client to the server? I'm mean have you written your own webserver, or some custom protocol on top of TCP/IP, or what?


      Do you want to know more?


      Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

      M 1 Reply Last reply
      0
      • C Colin Angus Mackay

        What protocol are you using to connect the client to the server? I'm mean have you written your own webserver, or some custom protocol on top of TCP/IP, or what?


        Do you want to know more?


        Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

        M Offline
        M Offline
        michael wikstrom
        wrote on last edited by
        #3

        I use TCP Client class in the C# client program to connect to the server. I use the accept method in the c-written server to accept the incoming socket connection.

        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