Networking ip Questions

Asked 2 years ago, Updated 2 years ago, 156 views

Currently, we are debugging with wireshark to create a function to upload code to cloud server.

Post's signal seems to go into the cloud well, but I can't see the file, so I'm debugging it.

What I felt was that IP1 (URL, browser input ip) and

that came out after building a web server through node.js in the cloud

The difference is the IP2 of the cloud found through wireshark and ifconfig in that cloud.

I am sending the file to IP1 by post method.

I saw you send the file from my computer to Jecom -> IP1(post) but

I can't see if it's because I'm receiving IP2 from the cloud.

I wonder why IP1 and IP2 are divided, and if so, I wonder how to solve them.

cloud network webserver

2022-09-22 22:03

1 Answers

For AWS, one EC2 instance is assigned one Private IP address (IP2). NAT translates and hands over data (packet) that came to the actual Public IP address (IP1) so that only private IP addresses are visible on the EC2 instance. Of course, even when data leaves the server, NAT changes the Private IP address to the Public IP address and sends it to you.

Please read the link below to understand the explanation of the Public and Private IP addresses. http://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/using-instance-addressing.html


2022-09-22 22:03

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.