Socket Server Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • muaz111111
    New Member
    • Mar 2008
    • 3

    Socket Server Problem

    Huy,

    I have made a tcp server which will listen on a specific ip and port, it is working fine but the problem is that i donot have any public ip. i am behind a proxy server and when i try to listen on my local ip, obviously it would not be visible from outsid. how to overcome this problem. i am using c# as programming language.

    Same is the problem on client side.

    Regards
  • Rajeshshewale
    New Member
    • Aug 2007
    • 8

    #2
    I have written code here for client/server communication:

    [Link Removed]

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      (Are you behind a proxy or a router/firewall?)
      You would need to configure the proxy server to allow for outside communications on a specific port to be allowed through it and directed towards you.
      Then you would direct users to the outside IP address and port, which the proxy server would then (hopefully) direct inside to you.

      Comment

      • jallred
        New Member
        • Feb 2008
        • 6

        #4
        If you have access to the proxy, forward the appropriate port to your server.

        If you have access to your firewall, you can do one of two things: either forward the appropriate port to your server, or move your server into the DMZ.

        Have fun!
        John
        [link removed]

        Comment

        • MMcCarthy
          Recognized Expert MVP
          • Aug 2006
          • 14387

          #5
          @ Rajeshshewale

          If you wish to submit code please submit it in the thread and not using a link.

          ADMIN

          Comment

          • muaz111111
            New Member
            • Mar 2008
            • 3

            #6
            Huy

            i am behind a proxy and i donot have access to proxy server. i want to know the procedure like adapted by yahoo messenger etc. Bcoz for using yahoo messenger we only have to provide proxy server ip and port and then we can communicate over internet, we donot have to do any port forwarding etc.
            plz reply, i have very less time for my project.

            Rajeshshewale plz send me the code on my email address, which is [email removed]

            Regards
            Last edited by MMcCarthy; Mar 3 '08, 10:46 PM. Reason: email addresses against site rules

            Comment

            • Plater
              Recognized Expert Expert
              • Apr 2007
              • 7872

              #7
              the code he had did not address getting around a proxy server

              Comment

              • MMcCarthy
                Recognized Expert MVP
                • Aug 2006
                • 14387

                #8
                @ All participants in this thread.

                Please remember that links to commercial sites or competing forums are not allowed. Neither do we allow members to post their email addresses in posts.

                Please take the time to read the site rules.

                Posting Guidelines

                Comment

                Working...