I have been hitting the tab key by mistake and I think firefox is sending
my posting before they are finished as a result. This is the completed
posting.
In file /etc/resolve.conf
I found #s 67.69.184.228 and 67.69.184.164
doing #host 67.69.184.228 (or the other #)
I get:
228.184.69.67.in-addr.arpa domain name pointer TOROON63NSC21-1.srvr.bell.ca.
so I assume my server is: TOROON63NSC21-1.srvr.bell.ca
Right:
doing an ifconfig I get:
eth0 Link encap:Ethernet HWaddr 00:0C:F1:B2:F3:15
inet addr: 192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
...
I believe the 192.168.1.100 is my routers address.
but if I http to that number I get:
Firefox can't establish a connection to the server at 192.168.1.100
Can't I go to my router directly?
Meanwhile neither ifconfig nor ip addr shows me the numbers
67.69.184.228 and 67.69.184.164
so what is my ip address:
67.69.184.228 (alternative: 67.69.184.164) <http://67.69.184.164/>
or 192.168.1.100?
I assume I can use either of the top numbers.
I am now confused as to how my two processes communicating
over the internet find each other because they are each talking
to the same IP but I don't see how the IP is getting the information
to my computer.
Don't I have to speficy an address to my computer somewhere?
Could someone please explain this to me?
Below is the Smalltalk code; don't worry it's not hard to follow.
-Server side
" 1: start OperaORB" "In Smalltalk comments are insides quote marks"
OperaORB init: 8823 "8823 is the port number".
OperaORB run.
" 2: register object implementation"
OperaORB root at: #John put: OperaPerson new.
-Client side
" 1: start OperaORB"
OperaORB run.
" 2: create remote object"
john := OperaRemoteObject name: #John host:<your server name or ip
address> port: 8823.
" 3: remote message send"
john doSomething: 'Smalltalk!!'.
NOTE: I removed some irrelevant code.
Thanks
Ralph Boland
On 10/05/07, Bart Trojanowski <bart-oclug [ at ] jukie [ dot ] net > wrote:
* Ralph Boland <rpboland [ at ] gmail [ dot ] com> [070510 12:51]:
> How do I find out what my server name or ip address is?
These command show the IP address:
# ifconfig
# ip addr
The name is reported by
# hostname
> I assume that this is the ip address I loaded into my router and
> that I can get it from there. Am I right?
That's not always true. What you know yourself by and what others know
you as don't always have to match.
> Is my server name there too?
It can be. Try to resolve your IP:
# host <your IP here>
This will do a reverse lookup via your DNS.
> What are my choices for port number?
Anything over 1024 is fair game for any non-root process. Things in the
60000 range have some special uses, like NAT. Under 1024 are privileged
ports. See /etc/services for what is already taken.
-Bart
--
WebSig: http://www.jukie.net/~bart/sig/<http://www.jukie.net/%7Ebart/sig/>