question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi,

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:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alanmcgoverncommented, Dec 5, 2019

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

0reactions
justscribecommented, Dec 5, 2019

But if user already reachable, and we’ll enable forwarding, can that bring some issues?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found