Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.networking.connectivity > #108 > unrolled thread

What is a good unused Windows outgoing port for a client?

Started byCharlie <charlie@nospam.com>
First post2024-01-08 00:26 -0700
Last post2024-01-08 09:31 +0000
Articles 3 — 3 participants

Back to article view | Back to alt.comp.networking.connectivity


Contents

  What is a good unused Windows outgoing port for a client? Charlie <charlie@nospam.com> - 2024-01-08 00:26 -0700
    Re: What is a good unused Windows outgoing port for a client? "Carlos E.R." <robin_listas@es.invalid> - 2024-01-08 10:10 +0100
    Re: What is a good unused Windows outgoing port for a client? Andy Burns <usenet@andyburns.uk> - 2024-01-08 09:31 +0000

#108 — What is a good unused Windows outgoing port for a client?

FromCharlie <charlie@nospam.com>
Date2024-01-08 00:26 -0700
SubjectWhat is a good unused Windows outgoing port for a client?
Message-ID<ung83f$1f0b$1@neodome.net>
I need to set up an outgoing port for a client app.
But I don't know if it uses tcp or udp or even ipv4 or ipv6.

Googling, I found these four commands which gave these results shown below.
https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/default-dynamic-port-range-tcpip-chang

From those results, how would you advise I set the arbitrary outgoing port?

netsh int ipv4 show dynamicport tcp

Protocol tcp Dynamic Port Range
---------------------------------
Start Port      : 1024
Number of Ports : 64511


netsh int ipv4 show dynamicport udp

Protocol udp Dynamic Port Range
---------------------------------
Start Port      : 49152
Number of Ports : 16384

netsh int ipv6 show dynamicport tcp

Protocol tcp Dynamic Port Range
---------------------------------
Start Port      : 1024
Number of Ports : 64511


netsh int ipv6 show dynamicport udp

Protocol udp Dynamic Port Range
---------------------------------
Start Port      : 49152
Number of Ports : 16384

[toc] | [next] | [standalone]


#109

From"Carlos E.R." <robin_listas@es.invalid>
Date2024-01-08 10:10 +0100
Message-ID<opqs6kx1d1.ln2@Telcontar.valinor>
In reply to#108
On 2024-01-08 08:26, Charlie wrote:
> I need to set up an outgoing port for a client app.
> But I don't know if it uses tcp or udp or even ipv4 or ipv6.

It will be tcp on ipv4. Give any random number between 1024 and 64511.

-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#110

FromAndy Burns <usenet@andyburns.uk>
Date2024-01-08 09:31 +0000
Message-ID<l01tn5F5qubU1@mid.individual.net>
In reply to#108
Charlie wrote:

> how would you advise I set the arbitrary outgoing port?

Do you have any reason to force known number(s)?

It would be normal for most protocols to default to an ephemeral source 
port, i.e. let the operating system decide.

[toc] | [prev] | [standalone]


Back to top | Article view | alt.comp.networking.connectivity


csiph-web