简体   繁体   中英

How can i host java udp program for my android application?

我正在开发一个Android应用程序,其中使用简单的Java udp程序完成服务器端的执行。我想知道如何托管此应用程序,因为我需要一个静态IP服务器来运行Java程序。我可以运行我的Java程序吗在服务器中。是否可以?

You'll have to write a listener in some language (PHP, Java, Etc.). As for a static ip address, you can also look at a dynamic ip redirection service like no-ip;

http://www.no-ip.com/services/managed_dns/free_dynamic_dns.html

You can use a personal machine thats always online, or you can try to use a shared hosting plan that allows you to have a listening port open. A web service will likely be easier to work with than having some custom UDP/TCP connection.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM