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. Client /Server Programming

Client /Server Programming

Scheduled Pinned Locked Moved C#
helpquestionsysadminlounge
4 Posts 4 Posters 1 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.
  • J Offline
    J Offline
    Jijo BP
    wrote on last edited by
    #1

    I developed a chat software. But it works only in LAN. Because I am using IP address to talk each other. The problem is the ip address of 1 machine is local to the LAN. I want to communicate to a machine which is residing in another LAN through Internet. How can I ? Please help me Cheers Jijo

    D M S 3 Replies Last reply
    0
    • J Jijo BP

      I developed a chat software. But it works only in LAN. Because I am using IP address to talk each other. The problem is the ip address of 1 machine is local to the LAN. I want to communicate to a machine which is residing in another LAN through Internet. How can I ? Please help me Cheers Jijo

      D Offline
      D Offline
      Divyang Mithaiwala
      wrote on last edited by
      #2

      For this problem you have to create one server application. Now your all client send request to server & talk through server. before that client connect with server. I think this will solve your problem.


      Divyang Mithaiwala System Engineer & Software Developer

      1 Reply Last reply
      0
      • J Jijo BP

        I developed a chat software. But it works only in LAN. Because I am using IP address to talk each other. The problem is the ip address of 1 machine is local to the LAN. I want to communicate to a machine which is residing in another LAN through Internet. How can I ? Please help me Cheers Jijo

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

        Developing a client-server program or peer to peer program on a LAN is only the first step. Once you are fully assured your application(s) is/are working then you can proceed to trying to make it work over the Internet. Let's look at the requirements: 1. Internet Connection 2. Some way to identify your public IP address (i.e. the one of the Cable or DSL ISP) 3. A Router Your application will run on your LAN. It has a well known port, lets say it was 5999. Over on the router you will need to configure 5999 under Port Forwarding in order to send public traffic matching that port to the computer on your LAN that is running your application. Meanwhile your friend or colleague needs to know two things to connect: Public IP and port. You can also use this basic technology to setup a FTP Server, Web Server or other common applications (including Remote Desktop) that you wish to remotely access. Ahhh, but lest we not forget the one caveat. If you can see it on the Internet so can people with nefarious purposes. So make sure you have a firewall in place, keep your software behind the DMZ. Good Luck Mike Luster CTI/IVR/Telephony SME

        1 Reply Last reply
        0
        • J Jijo BP

          I developed a chat software. But it works only in LAN. Because I am using IP address to talk each other. The problem is the ip address of 1 machine is local to the LAN. I want to communicate to a machine which is residing in another LAN through Internet. How can I ? Please help me Cheers Jijo

          S Offline
          S Offline
          snouto
          wrote on last edited by
          #4

          My friend your program if it connected successfully to its server so your application is running properly but you can't connect to the actual world wide except when you enable your application ports in the internet connection firewall on windows xp sp1 or sp2 then you are done enjoy your life with your small chat sever application. Thanks my friend i hope it may help you. Human knowledge belongs to the world.

          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