Running an SFTP Server on both Internet and LAN
I'm now encountering an issue related to LAN and the Internet configurations.
First of all, my SFTP server is a virtual server, whose IP address is 192.168.132.128, running on Windows 10 through VMWare Workstation Pro. Its Ethernet card is virtual one and is NAT mode.
Secondly, my PC has a static IP address, for instance, 1.2.3.4, which allows me to connect it outside my house.
Thirdly, my PC also has a wi-fi adapter, and its IP is 192.168.0.186 obtained by wi-fi AP though DHCP.
So, I briefly describe my network and ideas, which are two parts.
PART 1, Establishing an SFTP connection from the Internet
Internet ---- 1.2.3.4 port 47777(PC) ----> Port forwarding to 192.168.132.128 port 22(SFTP server)----> Establish SFTP connection.
This part is done.
PART 2, Establishing an SFTP connection from the LAN
What I want to achieve is since My PC is included in the LAN through Wi-fi, I think it is possible that I can establish an SFTP connection through wi-fi, which means establishing the connection from other clients connecting to the same wi-fi. The reason behind this thought results from the fact that the transmit bandwidth is much larger through LAN than the Internet.
Other clients in the LAN ---- 192.168.0.186 port 47777 ----> "Do the trick" ----> forwarding to 192.168.132.128 port 22(SFTP server)----> Establish SFTP connection
"Do the trick" is my problem.
Update:
I think the primary problem currently is I cannot even ping my PC at 192.168.0.186 from other clients in the same LAN.
Network Schema:
My network
networking wireless-networking router sftp
|
show 1 more comment
I'm now encountering an issue related to LAN and the Internet configurations.
First of all, my SFTP server is a virtual server, whose IP address is 192.168.132.128, running on Windows 10 through VMWare Workstation Pro. Its Ethernet card is virtual one and is NAT mode.
Secondly, my PC has a static IP address, for instance, 1.2.3.4, which allows me to connect it outside my house.
Thirdly, my PC also has a wi-fi adapter, and its IP is 192.168.0.186 obtained by wi-fi AP though DHCP.
So, I briefly describe my network and ideas, which are two parts.
PART 1, Establishing an SFTP connection from the Internet
Internet ---- 1.2.3.4 port 47777(PC) ----> Port forwarding to 192.168.132.128 port 22(SFTP server)----> Establish SFTP connection.
This part is done.
PART 2, Establishing an SFTP connection from the LAN
What I want to achieve is since My PC is included in the LAN through Wi-fi, I think it is possible that I can establish an SFTP connection through wi-fi, which means establishing the connection from other clients connecting to the same wi-fi. The reason behind this thought results from the fact that the transmit bandwidth is much larger through LAN than the Internet.
Other clients in the LAN ---- 192.168.0.186 port 47777 ----> "Do the trick" ----> forwarding to 192.168.132.128 port 22(SFTP server)----> Establish SFTP connection
"Do the trick" is my problem.
Update:
I think the primary problem currently is I cannot even ping my PC at 192.168.0.186 from other clients in the same LAN.
Network Schema:
My network
networking wireless-networking router sftp
Ensure that the whole LAN is using IPs of192.168.132.X
and sftp to192.168.132.128:22
.
– harrymc
Feb 2 at 21:13
Sorry, I can’t get it.
– Lee Ching-Chan
Feb 4 at 3:38
The address of 192.168.132.128 is in a different LAN segment than 192.168.0.X, so you have problems crossing segments. Put all the computers on one segment so they can communicate freely.
– harrymc
Feb 4 at 7:45
I get your point, but I think it wouldn’t work since those dynamic IPs are under two different NAT networks, or there is something I misunderstand. Any ideas?
– Lee Ching-Chan
Feb 7 at 5:39
You might add to the post the schema of your network, because as it is I fail to see where are the two NAT networks.
– harrymc
Feb 7 at 9:14
|
show 1 more comment
I'm now encountering an issue related to LAN and the Internet configurations.
First of all, my SFTP server is a virtual server, whose IP address is 192.168.132.128, running on Windows 10 through VMWare Workstation Pro. Its Ethernet card is virtual one and is NAT mode.
Secondly, my PC has a static IP address, for instance, 1.2.3.4, which allows me to connect it outside my house.
Thirdly, my PC also has a wi-fi adapter, and its IP is 192.168.0.186 obtained by wi-fi AP though DHCP.
So, I briefly describe my network and ideas, which are two parts.
PART 1, Establishing an SFTP connection from the Internet
Internet ---- 1.2.3.4 port 47777(PC) ----> Port forwarding to 192.168.132.128 port 22(SFTP server)----> Establish SFTP connection.
This part is done.
PART 2, Establishing an SFTP connection from the LAN
What I want to achieve is since My PC is included in the LAN through Wi-fi, I think it is possible that I can establish an SFTP connection through wi-fi, which means establishing the connection from other clients connecting to the same wi-fi. The reason behind this thought results from the fact that the transmit bandwidth is much larger through LAN than the Internet.
Other clients in the LAN ---- 192.168.0.186 port 47777 ----> "Do the trick" ----> forwarding to 192.168.132.128 port 22(SFTP server)----> Establish SFTP connection
"Do the trick" is my problem.
Update:
I think the primary problem currently is I cannot even ping my PC at 192.168.0.186 from other clients in the same LAN.
Network Schema:
My network
networking wireless-networking router sftp
I'm now encountering an issue related to LAN and the Internet configurations.
First of all, my SFTP server is a virtual server, whose IP address is 192.168.132.128, running on Windows 10 through VMWare Workstation Pro. Its Ethernet card is virtual one and is NAT mode.
Secondly, my PC has a static IP address, for instance, 1.2.3.4, which allows me to connect it outside my house.
Thirdly, my PC also has a wi-fi adapter, and its IP is 192.168.0.186 obtained by wi-fi AP though DHCP.
So, I briefly describe my network and ideas, which are two parts.
PART 1, Establishing an SFTP connection from the Internet
Internet ---- 1.2.3.4 port 47777(PC) ----> Port forwarding to 192.168.132.128 port 22(SFTP server)----> Establish SFTP connection.
This part is done.
PART 2, Establishing an SFTP connection from the LAN
What I want to achieve is since My PC is included in the LAN through Wi-fi, I think it is possible that I can establish an SFTP connection through wi-fi, which means establishing the connection from other clients connecting to the same wi-fi. The reason behind this thought results from the fact that the transmit bandwidth is much larger through LAN than the Internet.
Other clients in the LAN ---- 192.168.0.186 port 47777 ----> "Do the trick" ----> forwarding to 192.168.132.128 port 22(SFTP server)----> Establish SFTP connection
"Do the trick" is my problem.
Update:
I think the primary problem currently is I cannot even ping my PC at 192.168.0.186 from other clients in the same LAN.
Network Schema:
My network
networking wireless-networking router sftp
networking wireless-networking router sftp
edited Feb 7 at 12:19
Lee Ching-Chan
asked Feb 2 at 14:05
Lee Ching-ChanLee Ching-Chan
12
12
Ensure that the whole LAN is using IPs of192.168.132.X
and sftp to192.168.132.128:22
.
– harrymc
Feb 2 at 21:13
Sorry, I can’t get it.
– Lee Ching-Chan
Feb 4 at 3:38
The address of 192.168.132.128 is in a different LAN segment than 192.168.0.X, so you have problems crossing segments. Put all the computers on one segment so they can communicate freely.
– harrymc
Feb 4 at 7:45
I get your point, but I think it wouldn’t work since those dynamic IPs are under two different NAT networks, or there is something I misunderstand. Any ideas?
– Lee Ching-Chan
Feb 7 at 5:39
You might add to the post the schema of your network, because as it is I fail to see where are the two NAT networks.
– harrymc
Feb 7 at 9:14
|
show 1 more comment
Ensure that the whole LAN is using IPs of192.168.132.X
and sftp to192.168.132.128:22
.
– harrymc
Feb 2 at 21:13
Sorry, I can’t get it.
– Lee Ching-Chan
Feb 4 at 3:38
The address of 192.168.132.128 is in a different LAN segment than 192.168.0.X, so you have problems crossing segments. Put all the computers on one segment so they can communicate freely.
– harrymc
Feb 4 at 7:45
I get your point, but I think it wouldn’t work since those dynamic IPs are under two different NAT networks, or there is something I misunderstand. Any ideas?
– Lee Ching-Chan
Feb 7 at 5:39
You might add to the post the schema of your network, because as it is I fail to see where are the two NAT networks.
– harrymc
Feb 7 at 9:14
Ensure that the whole LAN is using IPs of
192.168.132.X
and sftp to 192.168.132.128:22
.– harrymc
Feb 2 at 21:13
Ensure that the whole LAN is using IPs of
192.168.132.X
and sftp to 192.168.132.128:22
.– harrymc
Feb 2 at 21:13
Sorry, I can’t get it.
– Lee Ching-Chan
Feb 4 at 3:38
Sorry, I can’t get it.
– Lee Ching-Chan
Feb 4 at 3:38
The address of 192.168.132.128 is in a different LAN segment than 192.168.0.X, so you have problems crossing segments. Put all the computers on one segment so they can communicate freely.
– harrymc
Feb 4 at 7:45
The address of 192.168.132.128 is in a different LAN segment than 192.168.0.X, so you have problems crossing segments. Put all the computers on one segment so they can communicate freely.
– harrymc
Feb 4 at 7:45
I get your point, but I think it wouldn’t work since those dynamic IPs are under two different NAT networks, or there is something I misunderstand. Any ideas?
– Lee Ching-Chan
Feb 7 at 5:39
I get your point, but I think it wouldn’t work since those dynamic IPs are under two different NAT networks, or there is something I misunderstand. Any ideas?
– Lee Ching-Chan
Feb 7 at 5:39
You might add to the post the schema of your network, because as it is I fail to see where are the two NAT networks.
– harrymc
Feb 7 at 9:14
You might add to the post the schema of your network, because as it is I fail to see where are the two NAT networks.
– harrymc
Feb 7 at 9:14
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1401323%2frunning-an-sftp-server-on-both-internet-and-lan%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1401323%2frunning-an-sftp-server-on-both-internet-and-lan%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Ensure that the whole LAN is using IPs of
192.168.132.X
and sftp to192.168.132.128:22
.– harrymc
Feb 2 at 21:13
Sorry, I can’t get it.
– Lee Ching-Chan
Feb 4 at 3:38
The address of 192.168.132.128 is in a different LAN segment than 192.168.0.X, so you have problems crossing segments. Put all the computers on one segment so they can communicate freely.
– harrymc
Feb 4 at 7:45
I get your point, but I think it wouldn’t work since those dynamic IPs are under two different NAT networks, or there is something I misunderstand. Any ideas?
– Lee Ching-Chan
Feb 7 at 5:39
You might add to the post the schema of your network, because as it is I fail to see where are the two NAT networks.
– harrymc
Feb 7 at 9:14