How to use it?)
See original GitHub issueHi,
I’m using MonoTorrent and want to clients can seed even if port not forwarded by it’s router. I’ve tried to use this utility, but with no luck, I still can’t connect with the specified port. Code example:
private async void DeviceFoundAsync(object sender, DeviceEventArgs e) {
await _locker.WaitAsync();
try {
INatDevice device = e.Device;
Mapping mapping = new Mapping(Protocol.Tcp, Core.TorrentClient.Port, Core.TorrentClient.Port);
await device.CreatePortMapAsync(mapping);
try {
Mapping m = await device.GetSpecificMappingAsync(Protocol.Tcp, Core.TorrentClient.Port);
} catch {
}
} catch (Exception exc) {
} finally {
_locker.Release();
}
}
Is this is correct?
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
It - English Grammar Today - Cambridge Dictionary
We commonly use the pronoun it as both a subject and an object pronoun: Don't drink the milk. It smells terrible. Has anyone...
Read more >How To Use The Pronoun IT
IT is a pronoun that represents, things, objects, animals, plants…basically IT can be used to represent anything except people.
Read more >How to Use "It" in the English Grammar
It as a subject or object pronoun can be used to refer to a previously-mentioned thing, a baby, or a situation that has...
Read more >Use of "It" - Scholarly Voice - Academic Guides
Starting a sentence with "it" is acceptable in APA, but doing so may make sentences needlessly wordy and take the emphasis off of...
Read more >Uses of It @ The Internet Grammar of English
Uses of It · 1. It won't do any good to hide from me. · 2. I think you've broken it. · 3....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No, it shouldn’t. If a manual port mapping was created by the user then the automatic upnp one will be ignored, or the CreatePortMap call will fail with an exception.
This could always be made an option the user can choose to disable. However I’d have it enabled by default
But if user already reachable, and we’ll enable forwarding, can that bring some issues?