title: How to access Apache Mina sshd sftp server from remote machine
body: <p>I start up sftp server using Apache Mina Sshd Api. please refer follow link to see more details about my local SFTP server.<a href="https://stackoverflow.com/questions/29389249/how-to-set-root-directory-in-apache-mina-sshd-server-in-java">Link</a>.</p>
  
  <p>I tried to connect to that server from remotely by giving host name as my ip address but i couldn't enable to connect with the sftp server. I got "<strong>connection refused</strong>" error message.But i can connect locally.To connect locally i use  <strong><a href="http://winscp.net/eng/index.php" rel="nofollow noreferrer">winscp</a></strong> sftp client giving my host name as "localhost" but in remotely i can not give host name as localhost.So i gave host name as my machine IP address.When i gave that i got above error message.</p>
  
  <p>So i would like to know that how can i connect with my local sftp server from remote machine.</p>
  
  <p>Thank you.</p>