ec2 cloud hosting for my game.

0

i connected my game to the aws cloud server ec2 machine but the specific port 7777 through i want to connect is closed .i did everything, add port in inboud security ,ACL etc. but i didnt able to connect. please tell me how to i connect my game with the ec2 using 7777 port. i mean how to open this port. thankyou.

awais
asked 8 months ago193 views
2 Answers
0

Hello.
Is your application listening on port 7777 on your EC2?
If you are on Linux, you can use the following command to check if you are listening using a port number.
If nothing is displayed after executing the command, the application is not running and the application should be started on EC2.

sudo lsof -i:7777
profile picture
EXPERT
answered 8 months ago
  • thankyou for instant reply . yes i checked and it shows the port is closed. it opens when i run server on linux in my system. but i didn't able to open through directly on my game.

  • Aren't applications on Lightsail always running? It might be possible to solve this problem by having Lightsail automatically execute the command when it is started. Try the following file with the command to run the application.

    /etc/rc.local
    
0

What you intend to do is just allow inbound traffic with destination port 7777 and any random source IP?

Guess you already attach elastic ip on your EC2 eni, so next you should do is add a allow traffic with destination port 7777 rule to Security group you attaching EC2 during your initial instance provisioning.

V
answered 8 months ago
  • thanks for reply. i have attached security group with ec2 instance that i want to connect my game. i just want to connect my game with that instance ip with port 7777 which show closed. it opened and work properly if i first run server through my Linux system by command ./game_server and then connect as client in my game. i want to connect directly in my game. want to skip linux system work

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions