• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

URL & Networking

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am going to move this to the Socket/Networking forum
Bill
 
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
You can thank my dental hygienist for my untimely aliveness. So tiny:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic