0

Upon trying to bind ZeroMQ Socket to google compute ephemeral IP result in

Cannot assign requested address (IOError)

I think, I get what is the reason for this because the ifconfig does not report the ephemeral IP in the listing

All it contain private IP (which I believe is NAT ip) that google internally uses.

Reference drawn from here

The Firewall rule for the desired port have be allowed to

zeromq-port 0.0.0.0/0   tcp:5437-5438   Apply to all targets

Now how does I work around with this and have ZeroMQ communicate across the across instances.

Viren
  • 171
  • 1
  • 2
  • 10
  • Is there any particular reason why you only want to bind to the external IP address, and not the internal one? – Andreas Veithen Nov 06 '15 at 18:18
  • If you need to bind your service to external IP you can accomplish this setup using forwarding rules(https://cloud.google.com/compute/docs/load-balancing/network/forwarding-rules). Forwarding rules will be assigned an external IP, you can use this IP to bind your service. – Faizan Nov 09 '15 at 20:09
  • If you were able to solve this, you can post the answer here for other community members who may be seeing this same issue. – Faizan Dec 21 '16 at 18:37

1 Answers1

1

GCE network layer will forward packets destined to a particular external IP to the corresponding instance. “Ifconfig” will not list an interface having an external IP. Binding services to all interfaces should work on most applications.

Carlos
  • 1,385
  • 8
  • 15