Thread 'netstat question'

Message boards : BOINC client : netstat question
Message board moderation

To post messages, you must log in.

AuthorMessage
River~~
Avatar

Send message
Joined: 12 Mar 07
Posts: 59
Message 8850 - Posted: 17 Mar 2007, 23:43:23 UTC

The syntax to find out what ports boinc is listening on, on a *nix box, is

netstat -pl|grep boinc

(or possibly with a -i in the grep). Is this right?

If so, why does t never show me as listening on 1043, when that port is obviously in use by BoincView - it just lists the port at 31416.

Ideas?

R~~
ID: 8850 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 8854 - Posted: 18 Mar 2007, 3:42:54 UTC
Last modified: 18 Mar 2007, 3:43:09 UTC

It has *never* listened on two ports at the same time. Logic seems to be: try to open one port, if it fails, try the other.
ID: 8854 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 8859 - Posted: 18 Mar 2007, 20:58:34 UTC - in response to Message 8857.  

In addition BOINC localhost also uses a random port between 1038-5000. Had to enable that range for BOINC to stop hangs on the BOINCmgr part (windows).

Not exactly. That's how absolutely any connection works. If you connect to a website, it connects to the webserver's port 80, and opens a local port too. That doesn't mean it listens for connections on the local port (so don't need to allow them incoming on firewall, or forward on router). The connection ends up being between www.google.com:80 and localhost:[randomport].

When BOINCmgr connects to the core client, it will be between localhost:31416 (core client) and localhost:[randomport] (manager). The manager can't even control what is the local port used.
ID: 8859 · Report as offensive
River~~
Avatar

Send message
Joined: 12 Mar 07
Posts: 59
Message 8900 - Posted: 19 Mar 2007, 20:23:28 UTC - in response to Message 8859.  

In addition BOINC localhost also uses a random port between 1038-5000. Had to enable that range for BOINC to stop hangs on the BOINCmgr part (windows).

Not exactly. That's how absolutely any connection works. If you connect to a website, it connects to the webserver's port 80, and opens a local port too. That doesn't mean it listens for connections on the local port (so don't need to allow them incoming on firewall, or forward on router). The connection ends up being between www.google.com:80 and localhost:[randomport].

When BOINCmgr connects to the core client, it will be between localhost:31416 (core client) and localhost:[randomport] (manager). The manager can't even control what is the local port used.


So are you saying that even though I tell BoincView to use 1043 it is actually using 31416?

In which case I am still puzzled why I have not been seeing BV traffic on the netstat scan of port 31416.

And is BOINC giving up its IANA reservation of port 1043?

River~~
ID: 8900 · Report as offensive
MikeMarsUK

Send message
Joined: 16 Apr 06
Posts: 386
United Kingdom
Message 8911 - Posted: 20 Mar 2007, 8:48:51 UTC


MS ignored the IANA reservations and decided to sometimes use 1043 for itself.


I don't know the behaviour of Boinc in this area, but perhaps it listens on two ports for a connection, and then drops the 'other' port if no connection is forthcoming.

ID: 8911 · Report as offensive
River~~
Avatar

Send message
Joined: 12 Mar 07
Posts: 59
Message 8951 - Posted: 21 Mar 2007, 11:37:07 UTC - in response to Message 8900.  
Last modified: 21 Mar 2007, 11:38:18 UTC

To answer my own q's

...So are you saying that even though I tell BoincView to use 1043 it is actually using 31416?


OK, further experiments show BV uses the user-indicated port for several attempts, then before giving up entirely retries on pi. If that works it gives no indication to the user of the change of port, and only if pi also fails does it then tell you the first port was not responding.

I guess this is a legitimate case of 'the program(mer) knows better than the user' even tho it sent me on a wild goose chase...

In which case I am still puzzled why I have not been seeing BV traffic on the netstat scan of port 31416


because before I was not waiting long enough to see BV retry on the alternative port.

R~~
ID: 8951 · Report as offensive
River~~
Avatar

Send message
Joined: 12 Mar 07
Posts: 59
Message 8952 - Posted: 21 Mar 2007, 11:41:00 UTC - in response to Message 8911.  

MS ignored the IANA reservations and decided to sometimes use 1043 for itself.


ok, so we needed a workaround, but does BOINC just roll over and let MS steal a reserved port permanently? Surely we need to continue making a fuss till MS behave (without hold our breath for that to happen).

R~~
ID: 8952 · Report as offensive

Message boards : BOINC client : netstat question

Copyright © 2025 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.