Opened 14 years ago

Closed 14 years ago

#462 closed Bug (fixed)

CLI :: The -p --port command line param doesn't work

Reported by: mikeal Owned by: charles
Priority: Normal Milestone: 1.00
Component: CLI Version: 0.92
Severity: Normal Keywords:
Cc:

Description

I'm trying to run two instances of the command line client with the port parameter and it's failing to bind to the default port even when changing it in the command line.

I'm on debian and built from source 0.92

Change History (9)

comment:1 Changed 14 years ago by charles

port forwarding has changed significantly since 0.92. could you please test this in svn trunk and add a comment here about whether the problem persists or not?

comment:2 Changed 14 years ago by charles

  • Component changed from Transmission to CLI
  • Owner changed from somebody to charles

comment:3 Changed 14 years ago by tiennou

I can confirm this, I've launched it with -p 5050, and I'm seeing outgoing connection from my TCP port 63190, 63232, 63238, ... I also saw some "Couldn't connect socket (Can't assign requested address)"...

comment:4 Changed 14 years ago by Danez

working fine here with 0.93 and tf-cli (which is only different in handling status-output).

comment:5 Changed 14 years ago by Danez

use

 netstat -e -l -p --tcp --numeric-hosts --numeric-ports 2> /dev/null | grep transmission

to detect the ports of transmission

comment:6 Changed 14 years ago by tiennou

Now this is wierd... I'm using OSX 10.5, the netstat cmd above doesn't work, so I'm using lsof | grep trans, which outputs (IP addresses removed): TCP myBook:51686->*:52380 (ESTABLISHED) TCP myBook:51693->*:23363 (SYN_SENT) TCP myBook:51694->*:6881 (SYN_SENT) TCP myBook:51681->*:32281 (ESTABLISHED) TCP myBook:51683->*:55555 (ESTABLISHED) TCP myBook:51689->*:44909 (SYN_SENT) TCP myBook:51690->*:12414 (ESTABLISHED)

lsof with Transmission.app running : TCP myBook:52096->*:14150 (SYN_SENT) TCP myBook:52097->*:21440 (SYN_SENT) TCP myBook:52101->*:57419 (ESTABLISHED) TCP myBook:52100->*:12311 (SYN_SENT) TCP myBook:52104->*:websm (SYN_SENT) TCP myBook:52095->*:58005 (ESTABLISHED)

So it seems its only broken on Darwin...

comment:7 Changed 14 years ago by livings124

mikeal: does .96 work for you?

comment:8 Changed 14 years ago by tiennou

r4167 still does this.

comment:9 Changed 14 years ago by charles

  • Milestone changed from None Set to 1.00
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r4411 -- I think this was the timing issue that plagued the gtk+ client too. Switcing from tr_init() to tr_initFull() so that we pass in the port number to the libtransmission init function should fix the issue.

Note: See TracTickets for help on using tickets.