Programming sockets on one computer?

I am creating a chat client application.

It has both server and client parts.

Is it possible to test the application on the same computer or do I really need two different computers to run the application.

+5
source share
6 answers

Yes, you can test the application on one computer.

The IP address of the client and server in this case will be the same. Just open different ports for client and server.

+4
source

You can test on the same machine. I am doing this right now when I am printing this note. :)

, , , ... , , . , , .

, , . , .

+1

, IP- . . .

+1

, .

  • ( , ).

  • (127.0.0.1) , .

, , IP- , , .

+1

, , .

0

, . loopback- 127.0.0.1, IP- .

, , , . , 80, , -.

In addition, even though the testing is locally great, you need to make sure that you understand how your application should be configured in different applications and firewall routers.

0
source

All Articles