Normal Topic Port Numbers (Read 930 times)
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Port Numbers
Oct 7th, 2005 at 1:21pm
Print Post Print Post  
1. Is there a way to determine how many ports the computer is using vs which one are available?

2.Starting ports numbers,how high can you go?

3.When I first set up the server-client I tried to use the numbers in the manual, could not get them to connect, so I let sesame choose by default, but now I would like to start a second sesame server, if I let sesame server use the defaults will it use the next available or do they need to be specified?

4.Is there a way of finding out which ports sesame is using as the defaults?

Thanks for clarification !!
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Port Numbers
Reply #1 - Oct 7th, 2005 at 2:03pm
Print Post Print Post  
Quote:
1. Is there a way to determine how many ports the computer is using vs which one are available?

On Windows there is no real standard. Fortunately, the US govt. requires that Windows be Posix compliant for their servers. So on Winnt based systems (winnt, win2000, XP), the list of services with the port numbers used is in \winnt\system32\drivers\etc\services, or in \windows\system32\drivers\etc\services.

On Linux the same file is /etc/services. In either case, not all of the listed services are necessarily used on your system, but have been assigned port numbers by the standards body: "The Internet Assigned Number Authority" (IANA - http://www.iana.org/).
Quote:
2.Starting ports numbers,how high can you go?

You can go to 65535. But there are ranges that should be avoided. From the IANA site:

The port numbers are divided into three ranges: the Well Known Ports,
the Registered Ports, and the Dynamic and/or Private Ports.

The Well Known Ports are those from 0 through 1023.

The Registered Ports are those from 1024 through 49151

The Dynamic and/or Private Ports are those from 49152 through 65535
Quote:
3.When I first set up the server-client I tried to use the numbers in the manual, could not get them to connect, so I let sesame choose by default, but now I would like to start a second sesame server, if I let sesame server use the defaults will it use the next available or do they need to be specified?

Sesame will default to 20000 and 20001, if the port numbers are not otherwise specified. It is very unlikely that 20002 and 20003 are being used, so you might want to simply continue in that sequence.
Quote:
4.Is there a way of finding out which ports sesame is using as the defaults?

20000 and 20001.


Thanks for clarification !! [/quote]
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: Port Numbers
Reply #2 - Oct 7th, 2005 at 2:26pm
Print Post Print Post  
I have tried several combinations I get the error "Error: Failed to create local socket: Unknown" ?? ???
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Port Numbers
Reply #3 - Oct 7th, 2005 at 2:32pm
Print Post Print Post  
Please post the exact sequence you are using, i.e.:

sesame -server MyMachine:20025:20026
sesame -client MyMachine:20025:20026

and the exact name of the server-computer.

BTW: Windows does have a services manager, but it neglects to post the port numbers.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: Port Numbers
Reply #4 - Oct 7th, 2005 at 2:40pm
Print Post Print Post  
I got the server up, but the client won't connect.

C:\Sesame\Program\sesame.exe -Server Inventory:20002:20003

C:\Sesame\Program\sesame.exe -Client Inventory:20002:20003
  
Back to top
 
IP Logged
 
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: Port Numbers
Reply #5 - Oct 7th, 2005 at 2:48pm
Print Post Print Post  
I reread your last post closely, my problem was the exact server name, I was thinking the server name was something Sesame used, I forgot that it had to be the name of the computer sesame was located on.

Sorry for distracting you, go back to work on 2.0  Grin
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Port Numbers
Reply #6 - Oct 7th, 2005 at 2:54pm
Print Post Print Post  
Note: This was posted just as Proud Poppy resolved his problem. I have left it here as general trouble shooting info:

From a command line on the client-computer type:

ping Inventory

and see if you are able to communicate from the client-computer to the server computer using that name. If so, make sure that the command string does not have any extraneous spaces. It should only have spaces where I have placed smiley faces:

C:\Sesame\Program\sesame.exe:)-client:)Inventory:20002:20003

If that is okay, check and make sure that you do not have any security or firewalls interfering with those port numbers.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Port Numbers
Reply #7 - Oct 7th, 2005 at 5:37pm
Print Post Print Post  
Here is a free generic Port Analyzer that may help.  It shows ports in use, not a list of all ports.

http://www.wilsonc.demon.co.uk/d7portanalyzer.htm

  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged