Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Sockets and Internet Protocols
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Devaka Cooray
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Jeanne Boyarsky
Tim Cooke
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Bartenders:
Forum:
Sockets and Internet Protocols
this below gives 192.168.10.2 well in which case this gives 127.0.0.1
Leonidas Savvides
Ranch Hand
Posts: 403
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
DatagramPacket receivePacket = new DatagramPacket( data, data.length ); [b]receivePacket.getAddress()[/b] //this below gives [b]192.168.10.2[/b] well, App run localhost and this is a local Lan ip, well in which case this gives [b]127.0.0.1[/b] ??? displayMessage( "\nPacket received:" + "\nFrom host: " + receivePacket.getAddress() + "\nHost port: " + receivePacket.getPort() + "\nLength: " + receivePacket.getLength() + "\nContaining:\n\t" + new String( receivePacket.getData(), 0, receivePacket.getLength() ) );
Nitesh Kant
Bartender
Posts: 1638
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Your question is really not clear. It will be nice if you can explain more about your problem.
apigee
, a better way to API!
Leonidas Savvides
Ranch Hand
Posts: 403
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
receivePacket.getAddress()
//this below gives
192.168.10.2
well, App run localhost and this is a local Lan ip, well in which case this gives
127.0.0.1
and which case give as given as tried:
192.168.10.2
? ???
Carol Enderlin
drifter
Posts: 1364
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I see question marks, but do not see a question.
Leonidas Savvides
Ranch Hand
Posts: 403
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
when we get 127.0.0.1 and when 192.168.10.2 (my PC address in LAN) ?
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Help wanted Urgently
Interrupting Events
UDP
Broadcasting to addresses
Problem in sending a packet
More...