Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - IP issue when loging in two users under same proxy
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

IP issue when loging in two users under same proxy

 Post Reply Post Reply
Author
StarDust View Drop Down
Senior Member
Senior Member


Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
Post Options Post Options   Thanks (0) Thanks(0)   Quote StarDust Quote  Post ReplyReply Direct Link To This Post Topic: IP issue when loging in two users under same proxy
    Posted: 19 September 2007 at 12:41am
I have 9 computers here all uses a proxy IP though two of them has their own routable IP (from the pc I am writing this).

When I log onto my forum at http://board.ebizbd.net from this PC using Admin account and from another PC using user account following strange situation occurs:

From my PC, I can only see the admin account online.
From the other PC I can only the user account online.
But never the both together.

Why this is happening?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2007 at 8:44am
To understand this you need to understand how HTTP works, unlike other protocols like FTP, HTTP is a stateless protocol, meaning that the connection to the sever is not maintained.

Infact the way HTTP works is that a suppurate anonymous connection is made not just to get each web page, but for each image, attached CCS style sheet, etc. for that page. As soon as the page, images, etc. has been sent to the users browser the HTTP connection is dropped.

This means for things like active users there is no accurate way to tell if a user is simply reading a page or have left the forum. So you have to use workarounds, in this case Web Wiz Forums tracks active users based on their IP address, which it stores for a period of 20 minutes, after 20 minutes of no activity the user with their IP address is dropped from the active users list.


Edited by -boRg- - 19 September 2007 at 8:45am
Back to Top
StarDust View Drop Down
Senior Member
Senior Member


Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
Post Options Post Options   Thanks (0) Thanks(0)   Quote StarDust Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2007 at 1:51pm
boRg do you try to say WWF cannot get IP address behind proxy IP?

I was using a global IP on my machine. If WWF could detect the IP behind proxy, it should detect my IP.

Another machine was not using any global IP. so WWF should get the proxy IP as the second machines's IP.

So, you see, WWF should get two different IPs here.

I am asking why it is not getting that?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2007 at 2:21pm
Web Wiz Forums attempts to get the users original IP from behind the proxy, but if it can not then it would use the IP address of the proxy.

If both machines are going through the same proxy, then depending on how the proxy is setup the only IP address available maybe that of the proxy.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2007 at 2:24pm
This is the function used for getting the IP address, as you can see it attepts to get the original IP address, but if this is not passed to the web server by the proxy server, then it is impossible to get the originators IP address, leaving only the proxy servers available:-



Private Function getIP()

    Dim strIPAddr

    'If they are not going through a proxy get the IP address
    If Request.ServerVariables("HTTP_X_FORWARDED_FOR") = "" OR InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), "unknown") > 0 Then

        strIPAddr = Request.ServerVariables("REMOTE_ADDR")

    'If they are going through multiple proxy servers only get the fisrt IP address in the list (,)
    ElseIf InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ",") > 0 Then

        strIPAddr = Mid(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), 1, InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ",")-1)

    'If they are going through multiple proxy servers only get the fisrt IP address in the list (;)
    ElseIf InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ";") > 0 Then

        strIPAddr = Mid(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), 1, InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ";")-1)

    'Get the browsers IP address not the proxy servers IP
    Else
        strIPAddr = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
    End If

    'Remove all tags in IP string
    strIPAddr =  removeAllTags(strIPAddr)

    'Place the IP address back into the returning function
    getIP = Trim(Mid(strIPAddr, 1, 30))
End Function



This is why many hackers and fraudsters use proxy servers to hide their IP address.
Back to Top
StarDust View Drop Down
Senior Member
Senior Member


Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
Post Options Post Options   Thanks (0) Thanks(0)   Quote StarDust Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2007 at 3:42pm
Originally posted by -boRg- -boRg- wrote:

This is the function used for getting the IP address, as you can see it attepts to get the original IP address, but if this is not passed to the web server by the proxy server, then it is impossible to get the originators IP address, leaving only the proxy servers available:-


Ok.

Though it has no concern to this topic nor this forum, i want to know if there is any way to bypass this proxy server.

Actually, it's not me but my ISP who is, somehow using the proxy. They are using microtik servers and we connect to this server through PPPoe protocol.


Edited by StarDust - 19 September 2007 at 3:42pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.