I have a program where i need to need to use the public IP in it. Since i m on a BSNL connection i cant hardcore the public Ip in it since the IP i use is dynamic.
The code is written in java and i know of one such command which is
String xyz = InetAddress.getLocalHost().getHostAddress();
The above statement returns the local IP of the system, but what i need is the public IP . Have looked for it in the API but couldnt make anything out of it
So , is there any particular method that returns the public ip
Also, does anybody here have an idea about rtpmanager,avreceiver,avtransmitter programs
The code is written in java and i know of one such command which is
String xyz = InetAddress.getLocalHost().getHostAddress();
The above statement returns the local IP of the system, but what i need is the public IP . Have looked for it in the API but couldnt make anything out of it
So , is there any particular method that returns the public ip
Also, does anybody here have an idea about rtpmanager,avreceiver,avtransmitter programs