开发者

Faking a network communication to test client/server on one computer

开发者 https://www.devze.com 2023-03-12 04:34 出处:网络
I have a course project where I\'m suppose to present some networking stuff. There are great chances that I have to do it on one computer. So my question is, how do I show a communication between tcp开

I have a course project where I'm suppose to present some networking stuff. There are great chances that I have to do it on one computer. So my question is, how do I show a communication between tcp开发者_C百科/ip or tcp/udp? I'm not a networking expert, I understand the concept of sending data which is red. And I think I need two IP addresses.


You don't need two IP addresses. Just start the server on the machine, and have the client connect to address 127.0.0.1 and the appropriate port. (This address always refers to the same machine the program is running on.)


You can run a virtual machine on your computer and work on network between them.

0

精彩评论

暂无评论...
验证码 换一张
取 消