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. Why can't I connect using Socket

Why can't I connect using Socket

Scheduled Pinned Locked Moved C#
csharpsysadminquestion
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.
  • K Offline
    K Offline
    kayhustle
    wrote on last edited by
    #1

    I have written a simple server/client program in C# using System.Net.Sockets, when I attempt to connect to my own computer using the local ipaddress it works fine. When I attempt to connect to other computers using my server program it doesn't work. When I attempt to connect to my own computer using my true ip address it doesn't work. I am connecting using TCP, anybody know why this happens?

    S 1 Reply Last reply
    0
    • K kayhustle

      I have written a simple server/client program in C# using System.Net.Sockets, when I attempt to connect to my own computer using the local ipaddress it works fine. When I attempt to connect to other computers using my server program it doesn't work. When I attempt to connect to my own computer using my true ip address it doesn't work. I am connecting using TCP, anybody know why this happens?

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

      Cofirm your machine has a true IP Address, and You will have it only when you have an adapter. Try to ascertain using a ping command CMD > ping <IP Address> love2code

      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