0

I am using hotspot to communicate with iPhone, I publish netservice and connect each other. While every client can find many devices, when one of them connect my device by using getInputStream:outputStream:, how can I know which one is connecting me? PS:I have tried to resolve IP, but IP address can change any time.

1 Answers1

0

Make your hotspot send some defined credentials (such as a host name) on the first attempt to connect. When accepting an input stream, check, if these data are provided and you're all set.

Tommy356
  • 252
  • 2
  • 7