DotGNU Portable.NET - Bugs: bug #12168, Cannot retreive the local hostname
You are not allowed to post comments on this tracker with your current authentication level.
bug #12168: Cannot retreive the local hostname
Submitter: | Kirill Kononenko <krokas> | ||
Submitted: | Sun 27 Feb 2005 06:41:10 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | Invalid |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Jump to the original submission
Tue 08 Mar 2005 08:06:22 PM UTC, comment #8: |
Anonymous |
Sun 06 Mar 2005 10:07:22 PM UTC, comment #7: Ah, now I understand what you're trying to do.
|
Carl-Adam Brengesjo <ptah> |
Sun 06 Mar 2005 07:43:29 PM UTC, comment #6: Command 'gethostname' is not defined in my system. However, there is a similar 'hostname'. The problem is solved with one of following strings - 'hostname 127.0.0.1' or 'hostname localhost'. Look below:
|
Kirill Kononenko <krokas> |
Sun 06 Mar 2005 01:18:04 PM UTC, comment #5: Works for me with current cvs on suse 9.2
|
Klaus Treichel <ktreichel> |
Sat 05 Mar 2005 03:28:16 PM UTC, comment #4: debian:/# gethostname
|
Kirill Kononenko <krokas> |
Sat 05 Mar 2005 05:57:39 AM UTC, comment #3: The return value from Dns.GetHostName() shouldn't be NULL, a SocketException should be thrown. However, that's not the reason why it fails.
|
Carl-Adam Brengesjo <ptah> |
Fri 04 Mar 2005 03:39:31 AM UTC, comment #2: I know another user with the problem. I added here a file with all my client-server source code. |
Kirill Kononenko <krokas> |
Thu 03 Mar 2005 08:54:54 AM UTC, comment #1: Not able to duplicate here. Getting the following when ran as luser or root:
|
Deryk Robosson <drobosson> |
Sun 27 Feb 2005 06:41:10 PM UTC, original submission:
The following code:
|
Kirill Kononenko <krokas> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 10 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2005-03-06 | ptah | Status | None | Invalid | |
Open/Closed | Open | Closed | |||
2005-03-05 | ptah | Summary | Bug in pnet | Cannot retreive the local hostname | |
2005-03-04 | krokas | Attached File | - | Added client.cs, #2279 | |
2005-03-04 | krokas | Attached File | - | Added server.cs, #2278 | |
2005-03-04 | krokas | Attached File | - | Added fullgame.zip, #2277 | |
2005-03-04 | krokas | Attached File | - | Added fullgame.zip, #2267 | |
2005-03-03 | krokas | Attached File | - | Added client.cs, #2264 | |
2005-03-03 | None | Attached File | - | Added server.cs, #2263 | |
2005-02-27 | krokas | Attached File | - | Added server.cs, #2245 |
Powered by Savane 3.13-02a9.
Corresponding source code
Alright, I got that this is a not a pnet bug at all. Could you tell me how to configure my system, so that I can use the 127.0.0.1 ip and use my computer as a server? Should I install some package? Are the following steps enough?
http://www.togaware.com/linux/survivor/IP_Forwarding.shtml