简体   繁体   中英

Running a java service on a server with dynamic ip

I am trying to setup a java service (a server) which accepts tcp/udp connections from GPS tracking device on a user defined port (say 5555).

As i am not having an static ip on my server i can't configure my gps device to point to a specific ip address.

how about using a dynamic dns service like no-ip.com so that i can have a static name mapped with my dynamic ip.

i can configure gps device to point to a domain like gpst.no-ip.org

will it redirect the gps device to port 5555 of my server if i use dynamic dns service.

Is their any other way of doing this ?

thanks !

The dns-lookup will happen with no knowledge of the port. So it is up to your application to decide which port to use.

I think binding the dynamic ip-address to a static name is a decent way to solve that problem.

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