Java socket connection error OS X 10.11

You are trying to establish a socket connection in your java program, but it always fails and gives you the following message: "failed to join /224.0.75.75:7500 on awdl0: java.net.SocketException: Can't assign requested address". The problem only occurs on the mac, but not on windows or linux machines.
1 answer

Deactivate Apple Wireless Direct Link(AWDL)

To avoid the java.net.SocketException you have to deactivate the "Apple Wireless Direct Link" function of the OS X operating system. This can be accomplished by doing the following steps:

  • open a terminal window
  • enter the command "sudo ifconfig awdl0 down"
  • if you are asked for your password, enter it

If, for some reason you want to reactivate AWDL you have to do the following:

  • open a terminal window
  • enter the command "sudo ifconfig awdl0 up"
  • if you are asked for your password, enter it

Taggings: