• Post Reply Bookmark Topic Watch Topic
  • New Topic

Simple Webserver...  RSS feed

 
co2
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey al i need help with a simple web server that listens on any port to a certain ip and when any1 surfes the that ip it prints out some text..
Can any1 help me with it???
It's suppsed to be written in like max 2 lines..
plz any1 help me..
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
2 lines? That will be a real mess...
Any limit for the length of a single line of source code? You could of course write 1000 lines and just remove the extra spaces and carriage returns when you're done...
(in other words, it cannot be written in 2 lines and still conforming to good coding conventions)
 
Mark Fletcher
Ranch Hand
Posts: 897
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What hes asking for sounds more like a port-scanner than a simple webserver...
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not a Web Services question. Moving this to network computing...
Kyle
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!