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. Visual Basic
  4. how to know which port is open

how to know which port is open

Scheduled Pinned Locked Moved Visual Basic
tutorial
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.
  • P Offline
    P Offline
    Paritos
    wrote on last edited by
    #1

    hi, I have 2 application. one is opening a port let say 2600 and listening to that port. my 2nd program will tell me that port 2600 is open or not what will be the code for that VB. bye Paritosh

    D 1 Reply Last reply
    0
    • P Paritos

      hi, I have 2 application. one is opening a port let say 2600 and listening to that port. my 2nd program will tell me that port 2600 is open or not what will be the code for that VB. bye Paritosh

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You're second app whas to be told which port to use. The only way it can find out is if it scans all the ports (preferrably 1024-65535) and eventually connects to the correct one. So how do other applications find the port? Easy, there are two of them. A control port that is well-known to the client app and doesn't change, and a data port that handles all data communications. The client would receive the data port number during some negotiation that you implement on the control port. What an example fo this? FTP does this. Port 21 is the FTP control port, 20 is the default port that data is sent over. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      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