• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

phpfreechat with multiple IPs

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
4 posts • Page 1 of 1

Postby aratisood » Sat Aug 01, 2009 12:54 pm

I have a server which is used locally via local static ip and also through global ip(broadband) for remote locations and if i open phpfreechat on the server's physical location then i cant see users who have opened via global ip.

e.g. say local users access via 192.168.0.100 and remote users via 56.43.23.45 (some dummy global ip).

how to configure phpfreechat to work on both IPs ?
aratisood
New member
 
Posts: 2
Joined: Sat Aug 01, 2009 12:47 pm
Top

Postby OldWolf » Sat Aug 01, 2009 9:09 pm

I'm not sure why there's a difference in this case, but chances are the serverid's are for some reason different... usually this only occurs when a user wants the same chat in two different files, but maybe something else is going on there I'm not considering.

So try setting serverid to a static value (md5('static value of any kind') would work), and see if that does the trick.
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby aratisood » Tue Aug 04, 2009 7:39 am

Hii...

the server ids are different bcoz the broadband company offers it via telephone line and the Global Static IP i.e. to access from remote locations ,is given by them and we have to pay for this service that our server is recognised by this IP always...

And we have done NAT settings on the router that any request to the Global Static IP is forwarded to the local ip...but i think your solution will work so i am going to try..

Thanks for replying.



OldWolf wrote:I'm not sure why there's a difference in this case, but chances are the serverid's are for some reason different... usually this only occurs when a user wants the same chat in two different files, but maybe something else is going on there I'm not considering.

So try setting serverid to a static value (md5('static value of any kind') would work), and see if that does the trick.
aratisood
New member
 
Posts: 2
Joined: Sat Aug 01, 2009 12:47 pm
Top

Postby OldWolf » Tue Aug 04, 2009 10:26 pm

Firstly, the serverid's I'm referring to are what the chat uses to track individual instances of the chat (not sure if that came through from my first post).

The reason I'm puzzled by them being different is that by default the serverid is just an md5 hash of the FILE constant (as returned by php)... so it shouldn't be changing regardless of which way you access it. But as I said, try making it static instead of being based on the FILE constant and see if that helps.
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top


Post a reply
4 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 21 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub