Ports
Ports
Ports
Ports
Ports
Ports Ports Ports Ports Ports Ports Ports Ports
Ports Ports
Ports
Go Back  Xtreme Visual Basic Talk > > > Ports


Reply
 
Thread Tools Display Modes
  #1  
Old 09-05-2001, 06:25 AM
Gazzo Gazzo is offline
Centurion
 
Join Date: May 2001
Location: Durham, England
Posts: 117
Question Ports


Using Winsock requires selecting LocalPort and RemotePort etc. I have used the port 1001 as given in the examples as tcpServer.LocalPort = 1001, the question is, where does 1001 come from, what other ports are available, and why use certain ports?

Any points to documents explaining this would be welcomed.

Thanks,
Gazzo.

Reply With Quote
  #2  
Old 09-05-2001, 08:10 AM
boy...
Guest
 
Posts: n/a
Default Re: Ports

you can use any ports but not the ports are being used.

such like 80. it's used to HTTP transmissions.

When you computer is connecting on the net, there are 65535

ports can be used. Don't worry about this . The example just

shows the basic functions.

a novice
Reply With Quote
  #3  
Old 09-05-2001, 08:35 AM
Gazzo Gazzo is offline
Centurion
 
Join Date: May 2001
Location: Durham, England
Posts: 117
Question Re: Ports

Thanks boy... but how do you know which ports are in use and if you are connected to a LAN how many ports do you have then?

Gazzo.

Reply With Quote
  #4  
Old 09-05-2001, 08:44 AM
bojanv55
Guest
 
Posts: n/a
Default Re: Ports

Well, if you wanna know which port is for what, go to google and type port list, i think you'll find a full list.

Reply With Quote
  #5  
Old 09-05-2001, 09:13 AM
ThinkerPorts Thinker is offline
Iron-Fisted Programmer

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Fayetteville Arkansas USA
Posts: 18,127
Default Re: Ports

Most ports above 1000 will be available, however, to be even safer, use
ports above 10000.

I think therefore I am... sometimes right. [img]images/icons/wink.gif[/img]
__________________
Posting Guidelines
Reply With Quote
  #6  
Old 09-05-2001, 09:38 AM
ChiefRedBull's Avatar
ChiefRedBullPorts ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default Re: Ports

There are two sets of ports - TCP and UDP. Each has 65535 making over 120,000 ports in all. The first 1023 ports of each set are used by your system. Anything above that is used by apps like yours that need internet connectivity.
You can open a port merely by calling the

Winsock.Listen portNo

Chief

"Dammit Smithers, this is brain surgery not rocket science!! Now hand me that ice cream scoop..."
__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
  #7  
Old 09-05-2001, 11:47 AM
davecarr2000
Guest
 
Posts: n/a
Smile Re: Ports

ports from 1-8000 are 'officially' used, ie there is a description to their use ie 110 is pop3 109 is pop2 and 108 is pop1 (I think). Anything above 8000 should be safe to use.(most types of applications are covered using the 8000 ports).
One to watch out for is 8080, which is usually used as a secondary Http Port.

As for UDP, Im not sure, mainly used for games, where dropped packets are ignored, and dont usually matter.

Reply With Quote
  #8  
Old 09-06-2001, 03:33 AM
Gazzo Gazzo is offline
Centurion
 
Join Date: May 2001
Location: Durham, England
Posts: 117
Smile Re: Ports

Thanks everybody,

I found some stuff on the Internet yesterday explaining the MS Winsock component and it mentioned that various ports are used for various protocols, i.e. 13 is for Date and Time of the server etc.

The responses I've received on this post have given me a lot of ideas to look into. A bit more further reading is required on my behalf then hopefully the penny will drop.

Thanks,
Gazzo.

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Ports
Ports
Ports Ports
Ports
Ports
Ports Ports Ports Ports Ports Ports Ports
Ports
Ports
 
Ports
Ports
 
-->