[jcifs] Smb - set on which port to connect to the remote host
Michael B Allen
ioplex at gmail.com
Tue Aug 10 17:13:32 MDT 2010
On Tue, Aug 10, 2010 at 2:25 AM, Gergan Dimitrov
<gergan.dimitrov at gmail.com> wrote:
> Hi all,
> I am trying to connect to a remote host on port different than the default
> 445. I have this in mind:
> SmbFile smbFile = new SmbFile("smb://host:port/share/fileName",
> NtlmPasswordAuthentication).
>
> Is that solution ok? Is there a way to specify the port as a parameter of a
> method/constructor?
Hi Gergan,
Yes, as stated in the SmbFile API documentation, the port component of
an SMB URL is fully supported.
Mike
--
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/
More information about the jCIFS
mailing list