Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing webserver on a network  RSS feed

 
Asim Zafar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, i've a problem in accessing a webserver through internet
i would really appreciate any help...
Well the problem is that my machine "PC79" is on a network which is always connected to the net, now i want to run a webserver on my machine and access it from my web-browser as if its any website on the internet like "http://ipaddress/pc79"
But i dont have any idea about it....
any tips, suggession,... thanx in advance
Regards
Asim Zafar
 
Tim Holloway
Bartender
Posts: 18709
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That won't work. In order to access a machine via the Internet, the machine must have an exernally accessible IP address, and you usually want it to have a domain name, so people can call it by name rather than IP address. The machine address is the part AFTER the "http://" and before the next slash. Anything after that slash (pc79) is considered a virtual directory path.
My domain is "mousetech.com", so if I added the PC79 machine to it, I'd add an entry to my domain name servers for it and users
would then be able to address it as "http://pc79.mousetech.com"
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!