Hello,

Error that I need help with, [-10261] Unable to bind listener socket to port (system error 10013)

server: windows server 2008 R2Standard 64 bit
Mobilink: 11.0.1.2789
database configuratie parameter:
D:\Databases\Sybase\imob\imobopl\imob.db -n imobopl -c 20M -ch 50M -x tcpip(serverport=52007)

mobilink startup script:

REM 
REM Starting the Mobilink Server
REM Parameter -zu+ inserts every new ml_user in the central database automatically
REM 
REM Temporaer –ze to Generate Example Skripts
timeout 180
start mlsrv11 -c "dsn=imobopl;uid=imob;pwd=moby" -fr -zs MLServer -zu+ -v -o "D:DatabasesSybaseimobimoboplimobopldbmlsrv.txt" -x tcpip(host=vm-sybtst01;port=52007)

according to netstat -tna there is a listener at the 52007 port, I can start the mobilink without specifying the -x tcpip(host=vm-sybtst01;port=52007) option, but then I get the following error on the clients that try to sync. Unable to read 0 bytes. (On client side I specify the ip and port of the server). Is there some sort of setting that needs to be changed on the server or is there something else wrong, any help would be appreciated.

Thanks Dimitri De Proft

asked 24 Oct '12, 03:29

DIMITRIDEPROFT's gravatar image

DIMITRIDEPROFT
61229
accept rate: 0%

edited 24 Oct '12, 03:54

Reimer%20Pods's gravatar image

Reimer Pods
4.5k384891


I found the problem, it seems I made the mistake of assigning the same port (52007) to the database AND to the Mobilink. For some reason I thought this was necessary, but it turned out this was causing the problems. Changing one of them solved it.

D:DatabasesSybaseimobimoboplimob.db -n imobopl -c 20M -ch 50M -x tcpip(serverport=52007)

start mlsrv11 -c "dsn=imobopl;uid=imob;pwd=moby" -fr -zs MLServer -zu+ -v -o "D:DatabasesSybaseimobimoboplimobopldbmlsrv.txt" -x tcpip(host=vm-sybtst01;port=52007)

Thanks for the help, the _log_all=9 and netstat really helped me find the problem.

permanent link

answered 25 Oct '12, 02:58

DIMITRIDEPROFT's gravatar image

DIMITRIDEPROFT
61229
accept rate: 0%

I have a few thoughts. Some are obvious, but they must be asked:

  • There are several reasons this error can occur, so more information is required.
  • Normally the host= setting is only required if you have multiple network cards and want to target a specific one.
  • Make sure the IP address is correct.
  • Can you use the hostname instead?
  • Is there any request-based activity in the MobiLink server log? It doesn't sound like it. To see the details of all network activity, add the following option within the parentheses of the -x option: ;_log_all=9
  • If the _log_all=9 setting shows no activity, then your sync request isn't making it to MobiLink server.

  • Russ

permanent link

answered 24 Oct '12, 09:20

RussC_FromSAP's gravatar image

RussC_FromSAP
1.3k11030
accept rate: 18%

[-10261] Unable to bind listener socket to port (system error 10013)

This means that another process is already bound to this port (52007).

according to netstat -tna there is a listener at the 52007 port

Meaning that the port is definitely in use by another application prior to launching MobiLink...? Two applications cannot listen on the same port (on the same IP address) - they must be different.

Do you know which other process is already listening on this port on the server? Is it another MobiLink server instance you have previously launched perhaps? If you're not sure which application has bound to this port currently, you can use 'TcpView' from Microsoft SysInternals to find out.

You'll need to stop the already running application on that port and then launch the MobiLink server in order for it to bind to port 52007 and allow your synchronizations to make it to the server.

permanent link

answered 24 Oct '12, 12:38

Jeff%20Albion's gravatar image

Jeff Albion
10.8k171175
accept rate: 25%

netstat -a -b can also be used to show which process is bound to a port. The -b switch requires elevation.

(24 Oct '12, 14:39) Bill Somers
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×371
×84

question asked: 24 Oct '12, 03:29

question was seen: 2,831 times

last updated: 25 Oct '12, 02:58