sbnarra
sbnarra

Reputation: 584

getInetAddress() returns 0.0.0.0

I have a Android app that connects to a server using Object streams all wrote in Java. It used to work fine and all of a sudden with nothing being changed the connection keeps timing out. I added a line to print the address the socket is connected to on the server side using socket. getInetAddress() but simply returns 0.0.0.0. Does anyone have any ideas why this is?

Thanks

Upvotes: 0

Views: 2025

Answers (1)

Brian Roach
Brian Roach

Reputation: 76908

That's the wildcard address ... it means your server is binding to all IPs on the machine. (And that's perfectly normal)

Upvotes: 3

Related Questions