Hello,
is it any possibility to open more than 65535 TCP/IP connections from
one IP address as client? Because each connection occupied one port, I
can't make more than 65k. Can be established more outgoing connections
(as client) from one port to more different servers simultaneously?
Thank you for any advice.
Ceny
|
|
0
|
|
|
|
Reply
|
ceny (1)
|
6/12/2006 7:42:27 AM |
|
cenycz wrote:
> Hello,
> is it any possibility to open more than 65535 TCP/IP connections from
> one IP address as client? Because each connection occupied one port, I
> can't make more than 65k. Can be established more outgoing connections
> (as client) from one port to more different servers simultaneously?
> Thank you for any advice.
>
Why on Earth would you want to?
You can connect to as many servers on the same port as there are
available file descriptors.
--
Ian Collins.
|
|
0
|
|
|
|
Reply
|
Ian
|
6/12/2006 8:11:06 AM
|
|
Ian Collins <ian-news@hotmail.com> wrote:
> cenycz wrote:
>> Hello,
>> is it any possibility to open more than 65535 TCP/IP connections from
>> one IP address as client? Because each connection occupied one port, I
>> can't make more than 65k. Can be established more outgoing connections
>> (as client) from one port to more different servers simultaneously?
>> Thank you for any advice.
>>
> Why on Earth would you want to?
>
> You can connect to as many servers on the same port as there are
> available file descriptors.
as long as it's less then 64k
|
|
0
|
|
|
|
Reply
|
Cydrome
|
6/12/2006 11:58:46 AM
|
|
Ian Collins wrote:
> cenycz wrote:
> > Hello,
> > is it any possibility to open more than 65535 TCP/IP connections from
> > one IP address as client? Because each connection occupied one port, I
> > can't make more than 65k. Can be established more outgoing connections
> > (as client) from one port to more different servers simultaneously?
> > Thank you for any advice.
> >
> Why on Earth would you want to?
>
> You can connect to as many servers on the same port as there are
> available file descriptors.
>
> --
> Ian Collins.
After making connect near 65k, I receive error "Cannot assign requested
address". There is no problem with available file descriptors. Is it
not possible to increase this count?
Thx
Cenda
|
|
0
|
|
|
|
Reply
|
cenycz
|
6/12/2006 1:05:58 PM
|
|
Hi,
cenycz wrote:
> Ian Collins wrote:
>
>>cenycz wrote:
>>
>>>Hello,
>>>is it any possibility to open more than 65535 TCP/IP connections from
>>>one IP address as client? Because each connection occupied one port, I
>>>can't make more than 65k. Can be established more outgoing connections
>>>(as client) from one port to more different servers simultaneously?
>>>Thank you for any advice.
>>>
>>
>>Why on Earth would you want to?
>>
>>You can connect to as many servers on the same port as there are
>>available file descriptors.
>>
>>--
>>Ian Collins.
>
>
> After making connect near 65k, I receive error "Cannot assign requested
> address". There is no problem with available file descriptors. Is it
> not possible to increase this count?
> Thx
>
> Cenda
>
I don't think so, is not the port 16 bit only?
/michael
|
|
0
|
|
|
|
Reply
|
Michael
|
6/12/2006 1:40:34 PM
|
|
cenycz wrote:
> Hello,
> is it any possibility to open more than 65535 TCP/IP connections from
> one IP address as client? Because each connection occupied one port, I
> can't make more than 65k. Can be established more outgoing connections
> (as client) from one port to more different servers simultaneously?
> Thank you for any advice.
Not with TCP, no. Why on earth would you want to?
--tim
|
|
0
|
|
|
|
Reply
|
Tim
|
6/12/2006 6:27:13 PM
|
|
Tim Bradshaw <tfb+google@tfeb.org> wrote:
> cenycz wrote:
>> Hello,
>> is it any possibility to open more than 65535 TCP/IP connections
>> from one IP address as client? Because each connection occupied one
>> port, I can't make more than 65k. Can be established more outgoing
>> connections (as client) from one port to more different servers
>> simultaneously? Thank you for any advice.
> Not with TCP, no. Why on earth would you want to?
In _theory_ since each TCP connection is identified by the four-tuple
of local/remote port and local/remote IP, it should be possible to
have multiple connections from the same local IP/port to different
remote IP/port (think accept() in the other direction). However, in
practice few if any stacks make that possible - or at least easily
possible.
rick jones
--
firebug n, the idiot who tosses a lit cigarette out his car window
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
|
|
0
|
|
|
|
Reply
|
Rick
|
6/12/2006 7:02:24 PM
|
|
On Mon, 12 Jun 2006 19:02:24 GMT Rick Jones <rick.jones2@hp.com> wrote:
> Tim Bradshaw <tfb+google@tfeb.org> wrote:
>> cenycz wrote:
>>> Hello,
>>> is it any possibility to open more than 65535 TCP/IP connections
>>> from one IP address as client? Because each connection occupied one
>>> port, I can't make more than 65k. Can be established more outgoing
>>> connections (as client) from one port to more different servers
>>> simultaneously? Thank you for any advice.
>
>> Not with TCP, no. Why on earth would you want to?
>
> In _theory_ since each TCP connection is identified by the four-tuple
> of local/remote port and local/remote IP, it should be possible to
> have multiple connections from the same local IP/port to different
> remote IP/port (think accept() in the other direction). However, in
> practice few if any stacks make that possible - or at least easily
> possible.
Doesn't SO_REUSEADDR accomplish this? Works for me, at least when
specifying the port.
-frank
|
|
0
|
|
|
|
Reply
|
Frank
|
6/13/2006 4:01:31 AM
|
|
Frank Cusack wrote:
> On Mon, 12 Jun 2006 19:02:24 GMT Rick Jones <rick.jones2@hp.com> wrote:
> > Tim Bradshaw <tfb+google@tfeb.org> wrote:
> >> cenycz wrote:
> >>> Hello,
> >>> is it any possibility to open more than 65535 TCP/IP connections
> >>> from one IP address as client? Because each connection occupied one
> >>> port, I can't make more than 65k. Can be established more outgoing
> >>> connections (as client) from one port to more different servers
> >>> simultaneously? Thank you for any advice.
> >
> >> Not with TCP, no. Why on earth would you want to?
> >
> > In _theory_ since each TCP connection is identified by the four-tuple
> > of local/remote port and local/remote IP, it should be possible to
> > have multiple connections from the same local IP/port to different
> > remote IP/port (think accept() in the other direction). However, in
> > practice few if any stacks make that possible - or at least easily
> > possible.
>
> Doesn't SO_REUSEADDR accomplish this? Works for me, at least when
> specifying the port.
>
> -frank
I thought SO_REUSEADDR can be the solution (I have the parameter from
beginning), however the error is with this parametr initialized.
I can't use this parameter with specifying the source port, because
bind doesn't know the target address+port and directly returns error
(it's parameter in connect) .
Ceny
|
|
0
|
|
|
|
Reply
|
cenycz
|
6/13/2006 6:27:59 AM
|
|
On 12 Jun 2006 23:27:59 -0700 "cenycz" <ceny@email.cz> wrote:
> Frank Cusack wrote:
>> On Mon, 12 Jun 2006 19:02:24 GMT Rick Jones <rick.jones2@hp.com> wrote:
>> > Tim Bradshaw <tfb+google@tfeb.org> wrote:
>> >> cenycz wrote:
>> >>> Hello,
>> >>> is it any possibility to open more than 65535 TCP/IP connections
e>> >>> from one IP address as client?
....
>> Doesn't SO_REUSEADDR accomplish this? Works for me, at least when
>> specifying the port.
>>
> I thought SO_REUSEADDR can be the solution (I have the parameter from
> beginning), however the error is with this parametr initialized.
> I can't use this parameter with specifying the source port, because
> bind doesn't know the target address+port and directly returns error
> (it's parameter in connect) .
Perhaps you could rephrase that.
-frank
|
|
0
|
|
|
|
Reply
|
Frank
|
6/13/2006 10:36:36 PM
|
|
Frank Cusack wrote:
>
> Doesn't SO_REUSEADDR accomplish this? Works for me, at least when
> specifying the port.
>
> -frank
As client I can't specify port, how do you do it?
example -
soc1 = socket(..)
...
setsockopt(soc1, SOL_SOCKET, SO_REUSEADDR...)
bind(soc1,...) // specifying port 1
connect(soc1, server_1) // everything ok - first connection from port 1
is established
...
soc2 = socket(..)
...
setsockopt(soc2, SOL_SOCKET, SO_REUSEADDR...)
bind(soc2,...) // specifying port 1
-> I receive error, port already used.
Without bind works OK, but every port can be used only once.
Cenda
|
|
0
|
|
|
|
Reply
|
cenycz
|
6/14/2006 12:55:44 PM
|
|
"cenycz" <ceny@email.cz> writes:
>Without bind works OK, but every port can be used only once.
When connecting to the same server, yes, because the tuple
<lport, laddr, rport, raddr>
needs to be unique.
So one TCP/IP client can have at most 65K connections to a single
server IP+port.
Casper
|
|
0
|
|
|
|
Reply
|
Casper
|
6/14/2006 1:05:57 PM
|
|
|
11 Replies
375 Views
(page loaded in 0.202 seconds)
Similiar Articles: "TCP/IP is not enabled for this connection"... ???!! - comp.os.ms ..."TCP/IP is not enabled for this connection" ... Increasing TCP buffer and window for more throughput ... ... TCP/IP connection limitations ... and select "open connections ... TCP MSS issue - comp.unix.programmerYou guys are still far more gentle than I am ... unix.programmer... encyclopedia The Transmission Control Protocol ... TCP/IP connection limitations - comp.sys.tandem TCP ... TCP timeout on Solaris 9? - comp.unix.solarisSo what other settings other than tcp_keepalive_interval will hold a TCP connection open? ... can send a keepalive. isn't it more ... timeout on tcp/ip read? - comp.unix ... Test ntpd performance - comp.protocols.time.ntpAre there any free/open source ntp clients that ... question is one of networking, switches, etc far more than ... Even a core switch is unlikely to support larger than 65K ... Multiple VPN clients behind home router - comp.dcom.sys.cisco ...> > Have you tried the "IPSec over TCP" setting ... by their kids/family imagine if I had open ... is a command in the ASA VPN policy to allow more than 2 active connections ... Microsoft FTP behind Cisco PIX - comp.dcom.sys.cisco... connection is always one lower than the control connection, so what you need to do is open ... org> wrote: :Should not need to open TCP ... subtly encourage the creation of more ... Session Freezes - comp.unix.solaris... tyle connections) freeze if a user attempts to paste more than a ... send any more ... Ho to disconnect a TCP session ... with the server via streaming TCP/IP ... Open your SSH ... eMule with cisco , How do it ? - comp.dcom.sys.cisco... your outside access list to allow connections to tcp ... it appears that if you wanted to use more than one inside PC to connect to eMule, that you would need one public IP ... How to force a socket to close ? - comp.unix.programmer... out which process has the port open ... posting to the comp.protocols.tcp-ip group. > I suppose that the socket connection is ... recommendation is going to be more work than ... socket programming...lsof? - comp.lang.ruby... project I'm working on), but that involves more work than ... current code is opening a new and private connection to a TCP ... Sending ASCII EOT signal over TCP/IP sockets ... Ports/services for drive mapping - comp.dcom.sys.ciscoWindows uses TCP port 445 for drive mappings. Well ... Still, marketing seems to matter much more than ... Can't map network drive via VPN connection. - comp.dcom.sys ... NAT Two External Addresses to One Internal Address - comp.dcom.sys ...... this would be if you had two broadband connections ... is intrinsically confusing so a little more ... hosts PIX - comp.dcom.sys.cisco... 21/tcp open ftp Nmap finished: 1 IP ... Slow network performance on HP-UX 10.20 - comp.sys.hp.hpux ...A single TCP connection will not take advantage of (much) more than one CPU's worth of ... Slow network performance when you open ... in the same subnet as virtual IP of ... Freescale's Idea of Open Source JTAG - comp.arch.embedded ...> > In a situation like this, I would think more about asking if it has a > "Open Specification ... sees a program emulating the GDBserver running over a TCP/IP connection. Getting EHOSTUNREACH -- No route to host error while sending a UDP ...This > connectivity is through 6to4 tunnel configured on an ... If the OS, hardware and TCP/IP stack are all the same ... If not, open a > > > > support call. > > > > > If ... What is the theoretical maximum number of open TCP connections ...... maximum number of open TCP connections that a ... ip, local port, remote ip, remote port) is what uniquely defines a TCP connection; does this imply that more than 65K ... How to have open more than 65k concurrent connections? | NANOG | users... per IP and they are sending proper Bittorrent tracker requests... So what can I do? How can I have have open more than 65k concurrent connections on ... TCP connection is ... 7/25/2012 1:43:28 AM
|