• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URL & Networking

 
ASHISH KUMAR
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
can somebody help me.
I'va a problem regarding accessing my local machine's hardisk through Sockets.What should be the URL,Port & protocol.
Should the port be unique to a machine or any Port should work.
I've tried
InetAddress inet = new InetAddress ("file:///c:"+File.seprator+"FILENAME");
It is not working. Iam checking for working of Sockets & URLs
using my hard disk and not the web.
Anybody having a solution or suggestion please help me.
thanks
 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am going to move this to the Socket/Networking forum
Bill
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have u tried the http://localhost/filename??
or http://127.0.0.1/
it works if u r running a webserver on u r m/c
but if u want a file then consider file:///filename it shud work..
Regds
Gautham Kasinath
 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u should have to have a server running at specific port
so that can listen requests from any client through socket...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic