Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6592877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:36:41+00:00 2026-05-25T17:36:41+00:00

I am trying to create a simple client/server application using Thrift which is going

  • 0

I am trying to create a simple client/server application using Thrift which is going to be run on EC2.

The example I created works awesome for localhost, but when I try to make the RPC call across two different machines on ec2 (both of which have separately allocated elastic IP addresses), it does not work with the following error:

raceback (most recent call last):
  File "SocialQClient.py", line 25, in <module>
    transport.open()
  File "/usr/local/lib/python2.6/dist-packages/thrift/transport/TTransport.py", line 150, in open
    return self.__trans.open()
  File "/usr/local/lib/python2.6/dist-packages/thrift/transport/TSocket.py", line 90, in open
    raise TTransportException(type=TTransportException.NOT_OPEN, message=message)
thrift.transport.TTransport.TTransportException: Could not connect to <MY-ELASTIC-IP>:9090

I have my security group set up for 0.0.0.0/0 for port 9090 on both machines for TCP. I tried UDP also and it did not fix it. What am I doing wrong?

Update:

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:36:41+00:00Added an answer on May 25, 2026 at 5:36 pm

    I am hazarding a guess that when one of your ec2 instance (“node1”) attempts the RPC call to the other ec2 instance (“node2”), node2 returns its internal IP address instead.

    Reference – http://alestic.com/2009/06/ec2-elastic-ip-internal

    Quote:

    This last option uses a little-known feature of the Elastic IP Address
    system as implemented by Amazon EC2:

    When an EC2 instance queries the external DNS name of an Elastic
    IP, the EC2 DNS server returns the internal IP address of the instance
    to which the Elastic IP address is currently assigned.

    And here’s some examples which illustrates how dig returns different values, comparing the scenario where you use a machine outside of Amazon to ping an ec2 instance, versus when you use an ec2 instance to ping another ec2 instance:-

    This is the permanent external DNS name for that Elastic IP address no
    matter how many times you change the instance to which it is assigned.
    If you query this DNS name from outside of EC2, it will resolve to the
    external IP address as shown above:

    $ dig +short ec2-75-101-137-243.compute-1.amazonaws.com
    75.101.137.243
    

    However, if you query this DNS name from inside an EC2 instance, it
    will resolve to the internal IP address for the instance to which it
    is currently assigned:

    $ dig +short ec2-75-101-137-243.compute-1.amazonaws.com
    10.254.171.132
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a simple chat client using the red5 media server,
I'm looking to create a rich-featured application using a client/server model, using WCF as
I am trying to create a simple dialog in MFC using Visual C++. My
I'm trying to create a simple toggling sidebar using jquery, where it expands and
Im using Eclipse 3.4, EclipseMe 1.7.9. Im trying to deploy/create package a simple project
I am trying to create a simple page that enters data in to a
I'm trying to create a simple BaSH-like grammar on ANTLRv3 but haven't been able
I'm playing with the ASP.NET MVC Framework, trying to create a simple site. My
I am trying to create a rather simple effect on a set of images.
I'm new to postgreSQL and I have a simple question: I'm trying to create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.