Port Forwading With two Different IP Addresses (Public IP and WAN IP)












0















Actually i stablished a ssh server on the android and i want to connect to it from outside the LAN so I need the IP of my modem which have a two different IP Address; The Public IP address 110.52.x.x that shows up when i ask google what is my ip and the WAN IP that the modem shows me in the config gateway. How can i solve this problem? I have tried searching for this kind of problem but i don't see any solution for it.



I use SSHDroid App to establish a SSH server and currently listening to 192.168.254.111:2222










share|improve this question

























  • Search here for CGN. You cannot port forward on your ISPs NAPT router, so trying to provide services to the public Internet from you LAN is prohibited by your ISP Terms of Service, so they do not care that CGN breaks your attempt to do that.

    – Ron Maupin
    Jan 3 at 5:21











  • Your ISP is likely using Carrier Grade NAT. Please read Alternatives to Port Forwarding & NAT: "There are four major problems that you may run into that would require alternatives to port forwarding. " ...

    – DavidPostill
    Jan 3 at 8:11











  • How about bypassing the CGN? Is there a thing like that?

    – Harie Amjari
    Jan 3 at 9:55
















0















Actually i stablished a ssh server on the android and i want to connect to it from outside the LAN so I need the IP of my modem which have a two different IP Address; The Public IP address 110.52.x.x that shows up when i ask google what is my ip and the WAN IP that the modem shows me in the config gateway. How can i solve this problem? I have tried searching for this kind of problem but i don't see any solution for it.



I use SSHDroid App to establish a SSH server and currently listening to 192.168.254.111:2222










share|improve this question

























  • Search here for CGN. You cannot port forward on your ISPs NAPT router, so trying to provide services to the public Internet from you LAN is prohibited by your ISP Terms of Service, so they do not care that CGN breaks your attempt to do that.

    – Ron Maupin
    Jan 3 at 5:21











  • Your ISP is likely using Carrier Grade NAT. Please read Alternatives to Port Forwarding & NAT: "There are four major problems that you may run into that would require alternatives to port forwarding. " ...

    – DavidPostill
    Jan 3 at 8:11











  • How about bypassing the CGN? Is there a thing like that?

    – Harie Amjari
    Jan 3 at 9:55














0












0








0








Actually i stablished a ssh server on the android and i want to connect to it from outside the LAN so I need the IP of my modem which have a two different IP Address; The Public IP address 110.52.x.x that shows up when i ask google what is my ip and the WAN IP that the modem shows me in the config gateway. How can i solve this problem? I have tried searching for this kind of problem but i don't see any solution for it.



I use SSHDroid App to establish a SSH server and currently listening to 192.168.254.111:2222










share|improve this question
















Actually i stablished a ssh server on the android and i want to connect to it from outside the LAN so I need the IP of my modem which have a two different IP Address; The Public IP address 110.52.x.x that shows up when i ask google what is my ip and the WAN IP that the modem shows me in the config gateway. How can i solve this problem? I have tried searching for this kind of problem but i don't see any solution for it.



I use SSHDroid App to establish a SSH server and currently listening to 192.168.254.111:2222







ssh android






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 3 at 5:11







Harie Amjari

















asked Jan 3 at 4:02









Harie AmjariHarie Amjari

11




11













  • Search here for CGN. You cannot port forward on your ISPs NAPT router, so trying to provide services to the public Internet from you LAN is prohibited by your ISP Terms of Service, so they do not care that CGN breaks your attempt to do that.

    – Ron Maupin
    Jan 3 at 5:21











  • Your ISP is likely using Carrier Grade NAT. Please read Alternatives to Port Forwarding & NAT: "There are four major problems that you may run into that would require alternatives to port forwarding. " ...

    – DavidPostill
    Jan 3 at 8:11











  • How about bypassing the CGN? Is there a thing like that?

    – Harie Amjari
    Jan 3 at 9:55



















  • Search here for CGN. You cannot port forward on your ISPs NAPT router, so trying to provide services to the public Internet from you LAN is prohibited by your ISP Terms of Service, so they do not care that CGN breaks your attempt to do that.

    – Ron Maupin
    Jan 3 at 5:21











  • Your ISP is likely using Carrier Grade NAT. Please read Alternatives to Port Forwarding & NAT: "There are four major problems that you may run into that would require alternatives to port forwarding. " ...

    – DavidPostill
    Jan 3 at 8:11











  • How about bypassing the CGN? Is there a thing like that?

    – Harie Amjari
    Jan 3 at 9:55

















Search here for CGN. You cannot port forward on your ISPs NAPT router, so trying to provide services to the public Internet from you LAN is prohibited by your ISP Terms of Service, so they do not care that CGN breaks your attempt to do that.

– Ron Maupin
Jan 3 at 5:21





Search here for CGN. You cannot port forward on your ISPs NAPT router, so trying to provide services to the public Internet from you LAN is prohibited by your ISP Terms of Service, so they do not care that CGN breaks your attempt to do that.

– Ron Maupin
Jan 3 at 5:21













Your ISP is likely using Carrier Grade NAT. Please read Alternatives to Port Forwarding & NAT: "There are four major problems that you may run into that would require alternatives to port forwarding. " ...

– DavidPostill
Jan 3 at 8:11





Your ISP is likely using Carrier Grade NAT. Please read Alternatives to Port Forwarding & NAT: "There are four major problems that you may run into that would require alternatives to port forwarding. " ...

– DavidPostill
Jan 3 at 8:11













How about bypassing the CGN? Is there a thing like that?

– Harie Amjari
Jan 3 at 9:55





How about bypassing the CGN? Is there a thing like that?

– Harie Amjari
Jan 3 at 9:55










1 Answer
1






active

oldest

votes


















-1














Actually i found a way. I tried to bypass CGN using ngrok.



First things first! i downloaded the Linux (ARM) file
and then because my android is already rooted i moved it to /system/bin using an app called root browser where i can access it directly in the terminal so i won't need to type ./ngrok anyway after that, i downloaded SSHDroid (NO IM NOT SPONSORING SOME APP) then start the SSH server...In the Meanwhile while SSHDroid is listening. In the terminal i type ngrok tcp -region ap 192.168.xxx.xxx:22. the 22 here is the port where SSHDroid is Listening.



You can also check my SSH server here --> 0.tcp.ap.ngrok.io
port:14315



Check it here SSH CHECKER






share|improve this answer





















  • 2





    Welcome to Super User! While this may answer the question, it would be a better answer if you could provide some explanation why it does so together with detailed instructions.

    – DavidPostill
    Jan 4 at 13:03











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1390035%2fport-forwading-with-two-different-ip-addresses-public-ip-and-wan-ip%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









-1














Actually i found a way. I tried to bypass CGN using ngrok.



First things first! i downloaded the Linux (ARM) file
and then because my android is already rooted i moved it to /system/bin using an app called root browser where i can access it directly in the terminal so i won't need to type ./ngrok anyway after that, i downloaded SSHDroid (NO IM NOT SPONSORING SOME APP) then start the SSH server...In the Meanwhile while SSHDroid is listening. In the terminal i type ngrok tcp -region ap 192.168.xxx.xxx:22. the 22 here is the port where SSHDroid is Listening.



You can also check my SSH server here --> 0.tcp.ap.ngrok.io
port:14315



Check it here SSH CHECKER






share|improve this answer





















  • 2





    Welcome to Super User! While this may answer the question, it would be a better answer if you could provide some explanation why it does so together with detailed instructions.

    – DavidPostill
    Jan 4 at 13:03
















-1














Actually i found a way. I tried to bypass CGN using ngrok.



First things first! i downloaded the Linux (ARM) file
and then because my android is already rooted i moved it to /system/bin using an app called root browser where i can access it directly in the terminal so i won't need to type ./ngrok anyway after that, i downloaded SSHDroid (NO IM NOT SPONSORING SOME APP) then start the SSH server...In the Meanwhile while SSHDroid is listening. In the terminal i type ngrok tcp -region ap 192.168.xxx.xxx:22. the 22 here is the port where SSHDroid is Listening.



You can also check my SSH server here --> 0.tcp.ap.ngrok.io
port:14315



Check it here SSH CHECKER






share|improve this answer





















  • 2





    Welcome to Super User! While this may answer the question, it would be a better answer if you could provide some explanation why it does so together with detailed instructions.

    – DavidPostill
    Jan 4 at 13:03














-1












-1








-1







Actually i found a way. I tried to bypass CGN using ngrok.



First things first! i downloaded the Linux (ARM) file
and then because my android is already rooted i moved it to /system/bin using an app called root browser where i can access it directly in the terminal so i won't need to type ./ngrok anyway after that, i downloaded SSHDroid (NO IM NOT SPONSORING SOME APP) then start the SSH server...In the Meanwhile while SSHDroid is listening. In the terminal i type ngrok tcp -region ap 192.168.xxx.xxx:22. the 22 here is the port where SSHDroid is Listening.



You can also check my SSH server here --> 0.tcp.ap.ngrok.io
port:14315



Check it here SSH CHECKER






share|improve this answer















Actually i found a way. I tried to bypass CGN using ngrok.



First things first! i downloaded the Linux (ARM) file
and then because my android is already rooted i moved it to /system/bin using an app called root browser where i can access it directly in the terminal so i won't need to type ./ngrok anyway after that, i downloaded SSHDroid (NO IM NOT SPONSORING SOME APP) then start the SSH server...In the Meanwhile while SSHDroid is listening. In the terminal i type ngrok tcp -region ap 192.168.xxx.xxx:22. the 22 here is the port where SSHDroid is Listening.



You can also check my SSH server here --> 0.tcp.ap.ngrok.io
port:14315



Check it here SSH CHECKER







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 4 at 13:42

























answered Jan 4 at 12:14









Harie AmjariHarie Amjari

11




11








  • 2





    Welcome to Super User! While this may answer the question, it would be a better answer if you could provide some explanation why it does so together with detailed instructions.

    – DavidPostill
    Jan 4 at 13:03














  • 2





    Welcome to Super User! While this may answer the question, it would be a better answer if you could provide some explanation why it does so together with detailed instructions.

    – DavidPostill
    Jan 4 at 13:03








2




2





Welcome to Super User! While this may answer the question, it would be a better answer if you could provide some explanation why it does so together with detailed instructions.

– DavidPostill
Jan 4 at 13:03





Welcome to Super User! While this may answer the question, it would be a better answer if you could provide some explanation why it does so together with detailed instructions.

– DavidPostill
Jan 4 at 13:03


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1390035%2fport-forwading-with-two-different-ip-addresses-public-ip-and-wan-ip%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

RAC Tourist Trophy