upnp

Trying to get NAT's external IPAddress with INATExternalIPAddressCallback in C#

▼魔方 西西 提交于 2019-12-04 11:55:28
How do I get the external IP Address of a NAT using the windows library? I am trying to find any information on INATExternalIPAddressCallback, but have only found one example in C++ using unavailable interfaces to C#. Any guidance would be much appreciated. -Karl Sorry, that I don't answer with an existing API from Windows that uses the UPNP service, but it migh help you You could also use a STUN-server on the internet, there are many open ones, every VOIP provider has one. http://en.wikipedia.org/wiki/STUN http://tools.ietf.org/html/rfc3489 e.g. open an UDP-socket, connect to stun.gmx.net on

How to publish file server service to local network?

荒凉一梦 提交于 2019-12-04 09:50:47
My question is about "automatic discovery of file server service on local network". I want to implement a service which is file server basically and publish it on local network. Client PC which is connected to local network should find this service automatically and map (mount) network drive without user's intervention. As I look through web shortly, I think "Bonjour" for Apple and "UPnP" for Windows is best option to implement this kind of feature. Is this right assumption? Do you know any other good suggestion? How about Linux? UPDATE: FYI - I finished my zero-configuration SW implementation

UDP/TCP hole punching vs UPnP vs STUN vs?

梦想与她 提交于 2019-12-04 08:49:05
I try to make a P2P Program and need help with getting through the NAT of the clients. I have read many questions here on stackoverflow, but i never got what the drawbacks and benefits of all the Methods to get through a NAT are. How many routers support which methods? Which methods are commonly used by the big companies? (BitTorrent, TeamViewer,...) What are the drawbacks/benefits of the three methods i listed and which else exists? UPnP requires software support in your router. Even when routers have it, it's sometimes turned off due to security concerns. STUN uses a simple public server to

TCP hole punching on iPhone

南笙酒味 提交于 2019-12-04 05:47:15
I have done a bit of reading, and although I'm new to iPhone networking I was wondering if a TCP hole punch is possible for connecting two iPhones through NAT. I also read some helpful things about uPnP and hairpinning but I'm not to familiar with those at all, so if anyone has any ideas as to whether or not this is possible. My goal is to be able to connect multiple iPhones over a large range (so it may be better to switch to some type of GPSR) but for now I'm only working with two iPhones and 3G NAT Traversal seems the simplest and most reliable in theory. nat traversal is generic term used

Python: Open a Listening Port Behind a Router (upnp?)

对着背影说爱祢 提交于 2019-12-03 18:57:17
问题 I've developed an application that is essentially just a little ftp server with the ability to specify which directory you wish to share on startup. I'm using ftplib for the server because it's sick easy. The only issue I'm having is that if you are behind a router you have to manually forward the ports on your router and I'm finding that it's a little too complicated for my users (aka co-workers/clients). So I've been looking for a simple solution to open ports but I'm finding that most APIs

How can I list upnp server/renderer in command line (console mode) on linux?

本小妞迷上赌 提交于 2019-12-03 18:40:28
问题 I want to list my available upnp/dlna renderers on my local network in console mode. I can do that with gupnp but not in console mode 回答1: gssdp-discover (from gupnp-tools) will list devices and services advertized over SSDP: gssdp-discover -i wlan0 --timeout=3 You can also specify the target (as uuid or a service/device type): gssdp-discover -i wlan0 --timeout=3 --target=urn:schemas-upnp-org:device:MediaRenderer:1 来源: https://stackoverflow.com/questions/18363833/how-can-i-list-upnp-server

Python UPnP/IGD Client Implementation?

▼魔方 西西 提交于 2019-12-03 11:04:45
I am searching for an open-source implementation of an UPnP client in Python, and more specifically of its Internet Gateway Device (IGD) part. For now, I have only been able to find UPnP Media Server implementations, in projects such as PyMediaServer , PyMedS , BRisa or Coherence . I am sure I could use those code bases as a start, but the Media Server part will introduce unneeded complexity. So can you recommend a client UPnP (and hopefully IGD) Python library? An alternative would be to dispatch calls to a C library such as MiniUPnP , but I would much prefer a pure Python implementation.

Creating a DLNA server/service in VB.NET [closed]

你。 提交于 2019-12-03 07:26:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I would like to create a DLNA server in VB.NET. Since a lot of multimedia devices start supporting DLNA, i would like to see what is possible. Not only streaming video/audio and pictures but see what else can be done. Anybody any starting points? protocol info, some basic code to get started? DLNA is based on

C# > UPnP - COMException: The owner of the PerUser subscription is not logged on to the system specified (Exception from HRESULT: 0x80040210)

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to communicate with dlna compliant devices using a C#.net application, using the UPnP protocol. I'm using the default Visual studio UPnP library("UPnP 1.0 type library (control point)"). I list all rendering devices using UPNPDeviceFinder.FindByType. All works fine... Now I get the AVTransport service using the function: public UPnPService GetAVTransport(UPnPDevice mediaDevice) { foreach (UPnPService service in mediaDevice.Services) { Debug.Print(service.ServiceTypeIdentifier); if (service.ServiceTypeIdentifier == "urn:schemas

UPnP Multicast: missing answers from M-SEARCH (Discovery)

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I created a small program to test UPnP Multicast (Visual C# 2010 Express, running on Windows 7 Professional 64 Bit). I can receive the UPnP NOTIFY Messages from UPnP Devices in my Network. But when i send the M-SEARCH Message, i get no Answers. I have tested the same code on a iOS environment (Monotouch for iOS, running on a iPhone simulator on a Mac). There it runs fine and i get all the search responses from my UPnP devices. I can also see the M-SEARCH message from my windows program. It looks like Windows (or a Firewall?) is hiding the