Discussion:
[rabbitmq-users] Cannot create/open a socket on the iOS platform
JB Yung
2015-02-06 21:50:42 UTC
Permalink
Hi,

I'm trying to use the rabbitmq-c library on the iOS platform. I'm able to
open a socket when I test my app on the simulator. However, I'm unable to
do so when I run it on a device. The call made to open a socket is
*amqp_socket_open.* I'm getting a *AMQP_STATUS_OK* when I run it on the
simulator an I'm getting the *AMQP_STATUS_SOCKET_ERROR* when I run it on
the device. I was wondering if anybody managed to create and open a socket
on an iOS device using the native C rabbitmq library.

Thanks

JB
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael Klishin
2015-02-06 22:11:53 UTC
Permalink
Post by JB Yung
I'm trying to use the rabbitmq-c library on the iOS platform.
I'm able to open a socket when I test my app on the simulator. However,
I'm unable to do so when I run it on a device. The call made to open
a socket is amqp_socket_open. I'm getting a AMQP_STATUS_OK
when I run it on the simulator an I'm getting the AMQP_STATUS_SOCKET_ERROR
when I run it on the device. I was wondering if anybody managed
to create and open a socket on an iOS device using the native C rabbitmq
library.
Can you be using default credentials (guest/guest) by any chance? That can only
connect from localhost:

http://www.rabbitmq.com/access-control.html

See RabbitMQ logs for clues.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
JB Yung
2015-02-06 22:52:14 UTC
Permalink
Hi Michael,

I'm using my own credential and i'm using the virtual host '/'. However,
I've just tried the default "guest/guest" account as well and I'm getting
the same error. Can't create a socket on the iOS devices but I'm able to
create one using the simulator on the OSX platform.

Any hints?

Thanks
Post by JB Yung
Post by JB Yung
I'm trying to use the rabbitmq-c library on the iOS platform.
I'm able to open a socket when I test my app on the simulator. However,
I'm unable to do so when I run it on a device. The call made to open
a socket is amqp_socket_open. I'm getting a AMQP_STATUS_OK
when I run it on the simulator an I'm getting the
AMQP_STATUS_SOCKET_ERROR
Post by JB Yung
when I run it on the device. I was wondering if anybody managed
to create and open a socket on an iOS device using the native C rabbitmq
library.
Can you be using default credentials (guest/guest) by any chance? That can only
http://www.rabbitmq.com/access-control.html
See RabbitMQ logs for clues.
--
MK
Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
JB Yung
2015-02-06 22:52:35 UTC
Permalink
Hi Michael,

I'm using my own credential and i'm using the virtual host '/'. However,
I've just tried the default "guest/guest" account as well and I'm getting
the same error. Can't create a socket on the iOS devices but I'm able to
create one using the simulator on the OSX platform.

Any hints?

Thanks
Post by JB Yung
Post by JB Yung
I'm trying to use the rabbitmq-c library on the iOS platform.
I'm able to open a socket when I test my app on the simulator. However,
I'm unable to do so when I run it on a device. The call made to open
a socket is amqp_socket_open. I'm getting a AMQP_STATUS_OK
when I run it on the simulator an I'm getting the
AMQP_STATUS_SOCKET_ERROR
Post by JB Yung
when I run it on the device. I was wondering if anybody managed
to create and open a socket on an iOS device using the native C rabbitmq
library.
Can you be using default credentials (guest/guest) by any chance? That can only
http://www.rabbitmq.com/access-control.html
See RabbitMQ logs for clues.
--
MK
Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael Klishin
2015-02-07 04:22:38 UTC
Permalink
You cannot use guest/guest to connect from non-local hosts with special configuration (and please do not do that either way!)

What is in RabbitMQ logs? If the issue is that you cannot open a socket, I'm afraid it's more of an iOS question.

I believe we know teams that used RabbitMQ from iOS, and since there is no Objective C client, they probably have used the C one. Will try to find out more.

MK
Post by JB Yung
Hi Michael,
I'm using my own credential and i'm using the virtual host '/'. However, I've just tried the default "guest/guest" account as well and I'm getting the same error. Can't create a socket on the iOS devices but I'm able to create one using the simulator on the OSX platform.
Any hints?
Thanks
Post by Michael Klishin
Post by JB Yung
I'm trying to use the rabbitmq-c library on the iOS platform.
I'm able to open a socket when I test my app on the simulator. However,
I'm unable to do so when I run it on a device. The call made to open
a socket is amqp_socket_open. I'm getting a AMQP_STATUS_OK
when I run it on the simulator an I'm getting the AMQP_STATUS_SOCKET_ERROR
when I run it on the device. I was wondering if anybody managed
to create and open a socket on an iOS device using the native C rabbitmq
library.
Can you be using default credentials (guest/guest) by any chance? That can only
http://www.rabbitmq.com/access-control.html
See RabbitMQ logs for clues.
--
MK
Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
JB Yung
2015-02-07 18:05:02 UTC
Permalink
Hey Michael,

Nvm. I got it to work. Was using a private hostname instead of a public
one. But yea, I'm essentially building an Objective-C client on top of the
native C one. Thanks for the prompt follow-up on this inquiry.

Cheers

JB
Post by Michael Klishin
You cannot use guest/guest to connect from non-local hosts with special
configuration (and please do not do that either way!)
What is in RabbitMQ logs? If the issue is that you cannot open a socket,
I'm afraid it's more of an iOS question.
I believe we know teams that used RabbitMQ from iOS, and since there is no
Objective C client, they probably have used the C one. Will try to find out
more.
MK
Hi Michael,
I'm using my own credential and i'm using the virtual host '/'. However,
I've just tried the default "guest/guest" account as well and I'm getting
the same error. Can't create a socket on the iOS devices but I'm able to
create one using the simulator on the OSX platform.
Any hints?
Thanks
Post by JB Yung
Post by JB Yung
I'm trying to use the rabbitmq-c library on the iOS platform.
I'm able to open a socket when I test my app on the simulator. However,
I'm unable to do so when I run it on a device. The call made to open
a socket is amqp_socket_open. I'm getting a AMQP_STATUS_OK
when I run it on the simulator an I'm getting the
AMQP_STATUS_SOCKET_ERROR
Post by JB Yung
when I run it on the device. I was wondering if anybody managed
to create and open a socket on an iOS device using the native C
rabbitmq
Post by JB Yung
library.
Can you be using default credentials (guest/guest) by any chance? That can only
http://www.rabbitmq.com/access-control.html
See RabbitMQ logs for clues.
--
MK
Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups
"rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
<javascript:>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...