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. Chat program with server behind a router

Chat program with server behind a router

Scheduled Pinned Locked Moved C#
sysadminquestionlounge
2 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.
  • R Offline
    R Offline
    Reve101
    wrote on last edited by
    #1

    hello... I need to write a simple chat program and I've noticed that there are alot of sample programs here that use socket programing. Most of them have a client program and a server program which listens to the client program and responds back to it. I also found one peer-to-peer program but here's my question: How do you connect to the server program (or a client/server) when the server is behind the router or some sort of a firewall. I mean I can't type 192.168.etc. as the ip address! So I was wondering if anybody can tell me how a msn-like chatting program works. Thanks alot.

    S 1 Reply Last reply
    0
    • R Reve101

      hello... I need to write a simple chat program and I've noticed that there are alot of sample programs here that use socket programing. Most of them have a client program and a server program which listens to the client program and responds back to it. I also found one peer-to-peer program but here's my question: How do you connect to the server program (or a client/server) when the server is behind the router or some sort of a firewall. I mean I can't type 192.168.etc. as the ip address! So I was wondering if anybody can tell me how a msn-like chatting program works. Thanks alot.

      S Offline
      S Offline
      seq
      wrote on last edited by
      #2

      Well, I guess that MSN server has a public IP, apparently you dont have one, so there mainly two solutions: 1. You put on the router somekind of port redirection to your chat server (to the right port of course) 2. You use some kind of VPN software like hamachi (hamachi.cc)

      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