Search code examples
network-programminghttpsipporttomcat8

Can I use https:127.0.0.1?


I tried using https for localhost, Can I use https for 127.0.0.1 instead of http:127.0.0.1:8080? My question is if I can use https to connect to localhost using the given ip? Please give me some response.


Solution

  • Simple answer yes, yes you can :)

    HTTPS can be used in exactly the same way as HTTP. Please note that you are going to have to set up your server to support HTTPS and on which port (Default 443) it should run on.

    If you use a port other than 443 you're going to have to explicitly add that port to your url (example https://127.0.0.1:8081 (or whatever your port is). Otherwise just https://127.0.0.1 should work

    Some links of interest: