Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: rampone on July 10, 2011, 10:27:29 PM



Title: Change connection port of bitcoin!
Post by: rampone on July 10, 2011, 10:27:29 PM
hiho,

in our student dorm a lot of ports are closed for incoming connections. Almoste evrything except http ftp and 50001 - 500010.

We have bad a$$ connections, especially upload. But I can still only connect to 8 people (like behind NAT).

Maybe some other ppl have te same problem?

Is it planned to be changeable in the future?

What do others think: changeable or fix port?


so long and thx for all the fish,

rampone (not affiliated with player no.3 of the us female soccer team ;)


Title: Re: Change connection port of bitcoin!
Post by: MrWizard on July 10, 2011, 10:35:37 PM
As long as your outgoing port is open you are fine.


Title: Re: Change connection port of bitcoin!
Post by: rampone on July 10, 2011, 10:40:53 PM
I know that. But only 8 connections? I could pump the blockchain out like a hell is hot ;) Also there has been a lot of discussion about how a lot of new people have no incoming connections accepted (thats why upnp is on by default now).

I would love a changeable port, shouldnt be a security concern AFAIK?! If yes, please tell me, a blatantly blind ignorant german ;)


Title: Re: Change connection port of bitcoin!
Post by: strictlyfocused on July 10, 2011, 11:19:38 PM
http://forum.bitcoin.org/index.php?topic=23768.msg331131#msg331131

Ive done what the post instructs and can confirm it works exactly as it says  :)


Title: Re: Change connection port of bitcoin!
Post by: Xenland on July 11, 2011, 02:29:04 AM
try updating to the newest version of bitcoin I read that it implements UPNP by default


Title: Re: Change connection port of bitcoin!
Post by: rampone on July 11, 2011, 03:20:03 AM
Do people sometimes even read  ;D

I have no connection problem at all, just no incoming port, as i am behind a special firewall.

My actual question is: Will the port be changeable in the bitcoinclient?


Title: Re: Change connection port of bitcoin!
Post by: strictlyfocused on July 11, 2011, 04:17:03 AM
Do people sometimes even read  ;D

I have no connection problem at all, just no incoming port, as i am behind a special firewall.

My actual question is: Will the port be changeable in the bitcoinclient?

What I posted gives you exactly what you want, you can connect over any port you want because it is ssh tunneled through tor and it all appears as whatever port number you gave tor to use.

If for example your firewall only allowed port 80, you setup tor to connect over port 80 and use socat to open up a port on the local pc that gets forwarded through the tor ssh tunnel to whatever ip/domain:port you define when you startup socat.


Title: Re: Change connection port of bitcoin!
Post by: rampone on July 11, 2011, 02:06:43 PM
But over tor i will not have a free incoming port? If yes, I am sorry, but going over tor will take some extra time again, and that maybe the time for my solo mined block to become invalid, because it was announced too late to the net.

ah well. I have a swissvpn connection running now, all incoming ports free like birds ;)


Title: Re: Change connection port of bitcoin!
Post by: Xenland on July 11, 2011, 05:36:42 PM
If its any constellation, I only get 6 connections on my Windows 7 I pay for my own internet.
The only time i get over 6 is when Im on linux(same computer different partition) I get around 100-120


Title: Re: Change connection port of bitcoin!
Post by: mmortal03 on July 12, 2011, 11:21:02 AM
If its any constellation, I only get 6 connections on my Windows 7 I pay for my own internet.
The only time i get over 6 is when Im on linux(same computer different partition) I get around 100-120

It's not a constellation, but I am seeing stars.


Title: Re: Change connection port of bitcoin!
Post by: rampone on July 12, 2011, 08:11:51 PM
xenland: if i connect trhough my normal provider, i get a real ip, but lotta incomin ports closed, but they work outgoing. btcgui will have up to 8 connections without "incoming".

through the vpn provider i get a real ip and no incoming ports firewalled: right now 36 connections in windows. seen up to 60 or so.

now at least i can also provide some upload (though the vpn provider is 20fold slower ;)

The problem is, that I am building a Pay per share Pool. If my new found blocks are not announced to a lotta peers really fast (like 500 and up), it might become invalid... and that is really not good for my (maybe future) business. not at all ;)


Title: Re: Change connection port of bitcoin!
Post by: Xenland on July 12, 2011, 09:18:24 PM
xenland: if i connect trhough my normal provider, i get a real ip, but lotta incomin ports closed, but they work outgoing. btcgui will have up to 8 connections without "incoming".

through the vpn provider i get a real ip and no incoming ports firewalled: right now 36 connections in windows. seen up to 60 or so.

now at least i can also provide some upload (though the vpn provider is 20fold slower ;)

The problem is, that I am building a Pay per share Pool. If my new found blocks are not announced to a lotta peers really fast (like 500 and up), it might become invalid... and that is really not good for my (maybe future) business. not at all ;)


Yeah no one should ever host a server on a computer that isnt hooked up to the internet backbone either in my opionin, you can get some good anti-ddos hosting only $50 a month that could potentially host up to 50-100 workers in my opionion.


Title: Re: Change connection port of bitcoin!
Post by: indicasteve on July 16, 2011, 05:20:54 PM
Do people sometimes even read  ;D

I have no connection problem at all, just no incoming port, as i am behind a special firewall.

My actual question is: Will the port be changeable in the bitcoinclient?

I don't think it would be possible to change the incoming port because the other clients who try to connect to you wouldn't know your new port number...


Title: Re: Change connection port of bitcoin!
Post by: Gavin Andresen on July 17, 2011, 12:05:30 PM
Bitcoin 0.3.24 adds a   -port=  option to listen on a port other than 8333 for incoming connections.


Title: Re: Change connection port of bitcoin!
Post by: rampone on August 13, 2011, 09:10:30 PM
Gavin, thanx a lot for that info, now I can make some nice nodes for the community ;)