Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Parse IP Address

843790Jul 28 2009 — edited Jul 28 2009
Hi,

I am trying to edit a program which acts as an RTP Server, the problem I have is when the Server parses the packet for an IP address of the client. I want to be able to specify this address but am unsure of the data type that it should be.

I tried "theServer.ClientIPAddr = 192.168.1.9;" but this is obviously the incorrect data type. The code is below:
theServer.ClientIPAddr = theServer.RTSPsocket.getInetAddress();
Any suggestions would be appreciated.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2009
Added on Jul 28 2009
6 comments
259 views