Comments (1)
You can use port 0 to bind with an random available port, but there is not option for ***random ipaddress **. IPAddress.Any
will to bind on all you eth and loopback, IPAddress.Loopback
for loopback only, (IPv6) for ipv6 only(ipv4 will also bind on ipv6 if Socket.DualMode is not set to false), and any special one ipaddress of you eth for single eth.
I'm not sure, but for boardcast with UDP, maybe you must special one ipaddress of you eth, and you can get them by
NetworkInterface.GetAllNetworkInterfaces().Where(ni => ni.OperationalStatus == OperationalStatus.Up).SelectMany(ni => ni.GetIPProperties().UnicastAddresses).ToArray()
from spannetty.
Related Issues (20)
- SSL Handshake failed on Ubuntu 18.04 using .NET 5.0 HOT 1
- Random test failed: `System.NotSupportedException : The WriteAsync method cannot be called when another write operation is pending.` HOT 5
- Why use IPromise and not ValueTask for Write/Close/etc ? HOT 4
- Should `release/0.7.x` be merged to `main`? HOT 2
- Huge Memory Usage-DotNetty.Buffers.HeapArena and DotNetty.Buffers.DirectArena HOT 8
- SocketHttp2ConnectionRoundtripTest::WriteOfEmptyReleasedBufferSingleBufferQueuedInFlowControllerShouldFail is really slow
- Doc of IByteBuffer.EnsureWritable(int) should be updated
- Drop support for legacy target target framework HOT 7
- Next Official Nuget Release? HOT 2
- CompositeByteBuffer.GetString/ReadString may return data with wrong index
- align with netty 4.1.68 HOT 1
- System.NotSupportedException during TLS handshake HOT 1
- Client bootstrap infinite wait when connecting from server to another server, but connects fine when running client standalone
- Is it production ready? how to learn? HOT 1
- NethermindEth would like to contribute if you could replace dotNetty with SpanNetty there?
- Uncatched RejectedExecutionException on IOCP thread will crash the whole app after eventloop is stopped
- proxy 支持 socks5吗?
- Memory leaks after closing the connection
- Memory not dropped after the connection closes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spannetty.