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
질문됨 9달 전200회 조회
2개 답변
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
전문가
답변함 9달 전
  • 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
답변함 9달 전
  • 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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠