开发者

How do I get the android emulator to use port 1900 when it's already being used by Windows?

I'm writing an android application that searches for devices using the UPnP port 1900, but when I telnet into the emulator and try to set up the port redirect like so:

redir add udp:1900:1900

It says:

Can't setup redirection, port probably used by another program on host

Port 1900 is being used on my computer by the Microsoft Plug and Play service and apparently cannot be disabled.

Is there any way around this? Short of side loading the apk on every change, what options do I have to test while developing?

I'm ho开发者_运维百科ping I'm missing something obvious.


I was able to disable the SSDP Discovery Service in services. This freed up port 1900 and the above emulator redirection command now works. Even though this service will restart when I restart the system, it will allow me to debug and test via the emulator.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜