How to run a java server on our PC? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to run a java server on our PC?

I have to run a TCP connection with my mobile so planning to connect my pc and mobile to same router but don't know how to run server on PC

22nd Oct 2017, 3:39 AM
Gokul R
Gokul R - avatar
1 Answer
0
Basically you can let your application listen to an ip:port or you can setup an application server https://www.oracle.com/technetwork/java/javaee/overview/compatibility-jsp-136984.html As you're mentioning a TCP connection you might want to use or realize a webserver, in this case many sources can be found, e.g.: https://stackoverflow.com/questions/8572127/tiniest-java-web-server
25th Feb 2020, 10:00 AM
Tashi N
Tashi N - avatar