Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7821309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:36:06+00:00 2026-06-02T07:36:06+00:00

I hope it is not too weird question. I’m running a web service on

  • 0

I hope it is not too weird question.
I’m running a web service on an IIS server which can be accessed either from internal network or from external (i.e Internet) by port forwarding.

External:
For example, if I connect to my server from the internet with http://my_public_domain_name than the firewall will forward port 80 to my server.

Internal:
Assuming my server has the ip 10.50.1.1 in the local network and my PC is in 10.60.1.1 (same itranet, different subnets) than I can access it by http://10.50.1.1.

When I get the request in the IIS (ASP.NET) I need to know whether the request was forwarded by the firewall or was it arrived internally.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T07:36:08+00:00Added an answer on June 2, 2026 at 7:36 am

    In a Servlet once, I wanted to have admin access from LAN only, so I took the internal IP range I was using, and created a simple rule for loggin in as admin that checked to see that my IP was in that range.

    In Java, I used HttpServletRequest.getRemoteAddr() and getRemoteHost().

    Looking in this page http://www.geekpedia.com/tutorial45_How-to-get-IP-address-of-client.html, it looks like the ASP equivalent is:

    Request.ServerVariables(“REMOTE_ADDR”)

    And something like this page would help you determine if it is a private (internal) IP range or not: https://en.wikipedia.org/wiki/Private_network (not sure if it is helpful for the IPv6 IPs)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hope this question is not too off-topic, if it is this post can
This is my first question on the site and I hope it's not too
Not too sure how to formulate my question and I hope that this is
I hope the question is not too unspecific. At the moment, I am trying
I hope I'm not too vague with this question. For some reason I've developed
I hope I'm not being too long winded in this question, I just want
I hope the question is not too generic, but I would need an advice:
I hope is not a question too specific... But I will be really thankfull
i hope this question is not too simple, but i have no idea :(
[I hope that this question is not too broad, I think that the subject

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.