LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-01-2002, 10:09 AM   #1
iaypaa
LQ Newbie
 
Registered: Oct 2002
Distribution: Suse 8.1
Posts: 6

Rep: Reputation: 0
Interesting TCP/IP Problem? PosgreSQL and Internet Connection Sharing Don't Work


Hi,

I post a thread a few weeks ago now on this forum, but can no longer find it! Anyway, I have been away from my computer for a while, but now still have the same problem, plus a further one, which I'm having a lot of trouble resolving....

Original problem:
I can't share an internet connection, which is available on my Win Me machine, with my Suse Linux 8.1 machine. This worked fine (and without me even having to do anything) when I ran Suse 7.1

New Problem:
I have a postgresql database set up, which I *can* manipulate etc via psql, but I cannot connect to it from a PHP script I've written. In fact, I can't connect to it from psql if I specify the host parameter and provide it with the machines IP address. The webpage and psql comeback with the same error mentioning TCP/IP....

I wonder if these two problems are related, and how I go about solving them?

NB: I'm using DHCP and I cannot ping the linux box from the Win Me machine....

Thanks for your help - it would be very much appreciated as I'm desperate to get this web script working!!!!

Cheers

Paul
 
Old 11-02-2002, 07:43 AM   #2
irish_rover
Member
 
Registered: Sep 2002
Location: IN, USA
Distribution: Debian, Endian FW
Posts: 368

Rep: Reputation: 30
Can you ping from the linux box to the windows machine? Maybe try setting up your Linux machine with a static ip for now so you can try to get your network going. Make sure you have the the windows machine 's ip address setup as your gateway on the linux machine.

For the gateway, check your /etc/sysconfig/network and make sure it looks similar to this...

NETWORKING=yes
HOSTNAME=dublin
GATEWAY=192.168.0.254 #ip of the windows machine

......

Ok now on to the php problem. Is this php script running on the same machine as your postgresql db? If so you don't want to specify the machine by ip address.....probably specify $host=localhost or whatever depending on your script?
 
Old 11-04-2002, 03:28 AM   #3
iaypaa
LQ Newbie
 
Registered: Oct 2002
Distribution: Suse 8.1
Posts: 6

Original Poster
Rep: Reputation: 0
I can't ping either machine from the other.

I think that DHCP is working as, for example, if I boot up the Win Me machine first it assigns itself an IP of 192.168.0.1 and the if I boot up the Linux box it gives itself 192.168.0.2....

I'm sure there's some problem with TCP/IP, and that's why PostgreSQL won't accept connections either. What do you actually have to do to set up TCP/IP properly? In Suse 7.1 and Mandrake 8.1, I never had to do anything, but it seems that Suse 8.1 isn't too happy.

Btw, I didn't have the config file, but there was an equivalent in a "config" directory.....

Any other ideas?

Cheers

Paul
 
Old 11-04-2002, 05:23 AM   #4
irish_rover
Member
 
Registered: Sep 2002
Location: IN, USA
Distribution: Debian, Endian FW
Posts: 368

Rep: Reputation: 30
Hmmmm..........now I'm not sure. I will have to think more on this.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why won't internet connection sharing work? djohn46972 Linux - Networking 3 05-30-2004 11:13 AM
Allowing TCP/IP connection while sharing the internet bhargav_kairos Linux - Networking 0 04-12-2004 02:47 AM
Internet Connection Sharing Problem sayua Linux - Networking 2 03-23-2004 10:10 PM
Interesting internet connection problem Risc91 Linux - Software 9 11-22-2003 02:17 PM
can't get internet connection sharing to work? powerchord81 Linux - Networking 2 10-18-2003 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration